-
由 wwwillchen-bot 提交于
## Summary - Prefetch user budget on app initialization to ensure budget info is available immediately on load - Invalidate user budget query when Dyad Pro API key is saved to reflect updated subscription status immediately - Added documentation for React Query prefetch and invalidation patterns to AGENTS.md ## Test plan - Verify that user budget data loads on app startup - Test saving a Dyad Pro API key and confirm the budget information updates automatically - Check that the app continues to work correctly without a Dyad Pro subscription
🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/dyad-sh/dyad/pull/2632" target="_blank"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1"> <img src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1" alt="Open with Devin"> </picture> </a> <!-- devin-review-badge-end --> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Prefetches the user budget on app load and invalidates the budget query after saving a Dyad Pro API key, so subscription status and budget update instantly. Adds React Query docs for prefetch and invalidation patterns. <sup>Written for commit 92b15f29cda8b9b19ba04d281c6e3774ea3928c8. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> Co-authored-by:Will Chen <willchen90@gmail.com> Co-authored-by:
Claude Opus 4.5 <noreply@anthropic.com>