rsnext/examples/with-mobx/pages
Már Örlygsson 766d7d5fe4 Run initializeStore() only once per route on server (#5644)
On the server `props.initialMobxState` received by the `constructor` is a fully functioning mobx store that was instantiated by `getInitialProps()` only a few ticks earlier.
Thus, creating a new instance is unneccessary.

In the browser, however, `props.initialMobxState` is a hydrated plain object and thus the store needs to be initialized.
2018-11-20 15:53:28 +01:00
..
_app.js Run initializeStore() only once per route on server (#5644) 2018-11-20 15:53:28 +01:00
index.js Improve with-mobx example (#4705) 2018-06-30 22:29:24 +02:00
other.js Improve with-mobx example (#4705) 2018-06-30 22:29:24 +02:00