state mangement
Answered
Giant Chinchilla posted this in #help-forum
Giant ChinchillaOP
I'm feeling a bit confused about managing state. I’m familiar with Redux, but with the new React Server Components (RSC) behavior, I'm not sure how to proceed. I haven’t found much information online about state management in Next.js either. Any advice would be appreciated!
Answered by Plague
State between client components can stay in react's context or redux or zustand, whatever you want to use. State shared between server and client components are usually stored in URL parameters, it heavily depends on your usecase and state when deciding to store things in the URL or within internal state/external store
4 Replies
@Giant Chinchilla I'm feeling a bit confused about managing state. I’m familiar with Redux, but with the new React Server Components (RSC) behavior, I'm not sure how to proceed. I haven’t found much information online about state management in Next.js either. Any advice would be appreciated!
State between client components can stay in react's context or redux or zustand, whatever you want to use. State shared between server and client components are usually stored in URL parameters, it heavily depends on your usecase and state when deciding to store things in the URL or within internal state/external store
Answer
@Giant Chinchilla So I would say everything is still the same, you can use states/state management libraries in your client component.
when it comes to server components, it's stateless
Giant ChinchillaOP
thanks everyone for help