Next.js Discord

Discord Forum

Revalidate with useSwr

Unanswered
elswell posted this in #help-forum
Open in Discord
I am trying to refetch and display the updated data on screen. But whatever I seem to change the newData that gets returned from the handleRefetch function is the already displayed old data. I have set the fetchCache to be "force-no-store" in the route.ts
Any idea on how I can achieve this?

0 Replies