Next.js Discord

Discord Forum

(Urgent ) Not able to invalidate the data after updating the data in Next.js

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
I am using App router and using next backend and I am using the next api and get all the users from it and send, But when I update the user and again refetch then it gives me old data , after refresh the page it does not change.

10 Replies

Delete the .next folder
And then, you can configure caching
American black bearOP
where should configuring it?
I am using tanstack query
the thing is it is working fine in local but in hosted link it is working finr
American black bearOP
I also did not get it
is in backend it cached the data ?
Can you delete your .next folder and rerun the app