3 ms·
My main concern - how does application state get handed off to the client-side code after the initial render? Sure, it's nice to have some pre-rendered template
by avolcano 13y ago
My main concern - how does application state get handed off to the client-side code after the initial render? Sure, it's nice to have some pre-rendered templates, but at some point it needs to "transition" cleanly to the client.
- akbar501 13y agoI just started hacking on Rendr last night, so I don't know if it shares state between Express on the server and the client-side app. My guess would be that Rendr does not have this built in as it's stated design goal is to stay small/modular. However, Yahoo already released a solution for shared Express/client state: https://github.com/yahoo/express-state https://github.com/yahoo/express-state
- fieldforceapp 13y agoHow does one go about debugging such a framework, state synchronization errors seem like they'd be a nightmare?
- frontendbeauty 13y ago(author here) We just bootstrap some JSON onto the page to transfer application state to the client. It's the same approach as the `express-state` (mentioned in a below comment). Same as any client-side app.