Question for server component initialized the state
Unanswered
Palomino posted this in #help-forum
PalominoOP
If I have the server component and embedded with the client component, when creating the RSC payload will it initialized the state inside the client component?
If the answer is yes, will it maintain a store at the server or init every time when calling a server rendering?
If the answer is yes, will it maintain a store at the server or init every time when calling a server rendering?
1 Reply
@Palomino If I have the server component and embedded with the client component, when creating the RSC payload will it initialized the state inside the client component?
If the answer is yes, will it maintain a store at the server or init every time when calling a server rendering?
the state of the client component will be initialized when it render on server but it will also initialized when it render on browser. So no, the client state will not be maintain on the server