Boost Productivity with Watch Mode
Stop manually regenerating your API client every time the backend changes. Watch mode automatically detects changes in your Swagger file and regenerates your code instantly.
Setting Up Watch Mode
Start watching your Swagger file with a single command:
How It Works
Watch mode monitors your Swagger file for changes and automatically runs the generate command when modifications are detected. This creates a seamless development experience where your frontend code stays in perfect sync with your backend.
Perfect for Backend-Frontend Collaboration
When working with a team, watch mode ensures that frontend developers instantly get new API changes:
- Backend adds a new endpoint → Frontend hooks generated automatically
- API response structure changes → Types updated immediately
- New parameters added → TypeScript catches missing args at compile time
Development Workflow
Pro Tips
- Commit your swagger.json to git for team-wide sync
- Use watch mode during active API development phases
- Combine with hot reload for instant feedback
