Using useSWR with App Router
Unanswered
Western Kingbird posted this in #help-forum
Western KingbirdOP
I've been in the process of migrating my application to the Next App router and leveraging server components & server data fetching the best I can
With how the App router pushes more of a focus on fetching from the server, is there really any need for me still to be using client fetching libraries such as useSWR?
With how the App router pushes more of a focus on fetching from the server, is there really any need for me still to be using client fetching libraries such as useSWR?
2 Replies
I've been using it even with the app router when I want to periodically fetch new data e.g. on focus change or on an interval
Western KingbirdOP
Gotcha, that’s a good use case