Next.js Discord

Discord Forum

How to refetch with SWR?

Unanswered
West African Lion posted this in #help-forum
Open in Discord
West African LionOP
I am using swr to fetch my api on the client side.

On a page I’m redirecting to the page where swr is called but it doesn’t refetch the data.

How do I do that? I already tried calling mutate in a useffect

0 Replies