mystor / meteor-routecore

Client and server side rendering/routing powered by React
84 stars 6 forks source link

Clients generating identical session values as server. #18

Closed trusktr closed 9 years ago

trusktr commented 9 years ago

In the README, it says

NOTE RouteCore does not send the session values which are generated on the server to the client. When the client renders code for the first time, it is expected that it will generate identical session values.

Can you explain this a little more? Is there some handling that we need to implement? Or is this already handled if we stick to the API?

mystor commented 9 years ago

Basically, if you don't do anything weird it should work fine. It just means that changes made to session state on the server during server side rendering aren't propagated to the client, but as the exact same code is called in the client on load, it shouldn't matter.

trusktr commented 9 years ago

Alright, thanks!