Add two layers on top of PR #6399's error boundary recovery: Layer 1 — QueryCache subscriber (query-cache-error-cleanup.ts): Subscribe to QueryCache events. When a persistable query transitions from success to error, resetQueries clears stale data so widgets show error/loading UI instead of rendering incompatible cached values. Uses resetQueries (not removeQueries) so active observers get a refetch triggered rather than being orphaned with a destroyed query. Layer 2 — Rehydration invalidation (trpc.tsx): Add onSuccess callback to PersistQueryClientProvider that invalidates all persistable queries after rehydration. Combined with staleTime: 0, this ensures rehydrated persisted data is immediately marked stale and refetches on mount rather than being served as fresh. Closes #6398
Create T3 App
This is a T3 Stack project bootstrapped with create-t3-app.
What's next? How do I make an app with this?
We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.
If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our Discord and ask for help.
Learn More
To learn more about the T3 Stack, take a look at the following resources:
- Documentation
- Learn the T3 Stack — Check out these awesome tutorials
You can check out the create-t3-app GitHub repository — your feedback and contributions are welcome!
How do I deploy this?
Follow our deployment guides for Vercel and Docker for more information.