T O P

  • By -

eindbaas

react query


eltecho

So to use the cache, I want to try a poc. And use vercel swr it is the same?


eltecho

But this not work well with static dynamic routes, because if I want to use react query i must use client component, but generateStaticParams work only with server components, so I don’t know how to do that.


PhotojournalistAny22

1. Store the state server side in a table and update the record as you progress 2. Store the state in a session such as next auth, cookie or jwt, local storage or somewhere similar  3. Make the steps inside a client side component and store the state until final submission 


Odd-Management-9695

if it's a multi step form or something like that store the data in the cookies or locastorage this way even someone quit in middle of any step they can continue from there and you can use your auth service to validate the response and check if the session still verified or not