enoki icon indicating copy to clipboard operation
enoki copied to clipboard

Added state.site.preloaded for server-side rendering

Open kodedninja opened this issue 6 years ago • 1 comments
trafficstars

Currently, if you preset the state using window.initialState the most optimal thing you can do is to disable the initial rendering. It would be useful to disable the automatic content.json request too, as we already have the content at the server level.

This way whenever you also set state.site.preloaded to true at rehydration, Enoki won't send the request again for content.json.

kodedninja avatar Feb 21 '19 06:02 kodedninja

Hey, any update on this? 🤔

kodedninja avatar Apr 07 '19 08:04 kodedninja