Force page data fetch with TRPC? Edit form cacheing older data.

I have an edit form. If a user creates edits, submits, then immediately returns to the page the data is cached and displays the old information. What is the correct policy for handling this issue?
1 Reply
Neto
Neto2y ago
react query caches the old data until conditions are met such as window click and such if you invalidate, old data is kept and in the background the new data will be fetched if you reset, react query full hard reset and show loading
Want results from more Discord servers?
Add your server