Hi, First Post, Sharing a pattern I've found for RSC to ClientSide state
Hi, anyone else stumble upon this pattern for having the server state initially available when a Client Component loads, and then overwriting it with reactivity latter?
I use
$state
with $ to denote $erver State, to keep it visually separate from client states.
Seems like I have been able to have the best of both worlds with this method, no rerender flicker nor skeleton loader needed.
But there's got to be a downside or something that I haven't encountered yet.
Trying to poke holes in this approach to make sure it's sound before I use it all over the place.
Any hole pokers out there? Thanks
message was too long, replying with code ....1 Reply