Hello, I reading this doc here https://tkdodo.eu/blog/react-query-meets-react-router and implementing such solution. It´s not working as I expected. While in action, I make use of clientQuery.invalidateQueries. I see it is working thru debbuing, as queryClient cache gets erased, but I don´t see the fetch from loader on the network tab and the data still the same in the table. Any advice to test and check what is happening ? I´m working with React Router, no Remix
#using react query
1 messages · Page 1 of 1 (latest)
the loader already does the job of react query, remix is react router based, loader is automatically re-fetched after an action triggered
But I need rect query cache. I try use the browser cache, but some setting in the project is preventing it to work
My only assumption would be the invalidate query is async and it doesn’t finish before your loader gets re-run so it doesn’t fetch the most recent data