Next.js Discord

Discord Forum

How to save data clientside?

Answered
Hermit Thrush posted this in #help-forum
Open in Discord
Hermit ThrushOP
I would like to save data clientside like the data cache serverside. So how to do that?
Answered by B33fb0n3
You can use libraries like react query or swr to cache data clientside. These are clients, with that you can fetch data and revalidate it after a specific time
View full answer

9 Replies

@Hermit Thrush I would like to save data clientside like the data cache serverside. So how to do that?
You can use libraries like react query or swr to cache data clientside. These are clients, with that you can fetch data and revalidate it after a specific time
Answer
@Hermit Thrush solved?
Hermit ThrushOP
yes thanks!
😁
just works
amazingly
@Asian black bear RQ is the best
yea for real ^^
@Hermit Thrush yes thanks!
happy to help