Client Side Data Fetching, best practice? #2168
Replies: 2 comments
-
Basically, yeah, put your data in An alternative is to use SSR to get the default data and then update when needed. In this case you pass the prop containing the data into |
Beta Was this translation helpful? Give feedback.
-
About two years ago I tested converting a Next.js project using useSWR to Preact and that part worked. Worth giving a try before building your own version. A fresher alternative is to submit a form or navigate and then use Fresh's |
Beta Was this translation helpful? Give feedback.
-
Hey, if I want to client-side fetch some data, what's the best way of doing that? useEffect ? Any packages I should be aware of (like the tanstack query and useSWR)?
Beta Was this translation helpful? Give feedback.
All reactions