Created
May 29, 2017 05:36
-
-
Save emilong/7a59b136069c27c1e1e034f408b175ab to your computer and use it in GitHub Desktop.
Initializing a MobX store from roast.io preloaded state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import BrandStore from "./brand-store"; | |
const store = new BrandStore(window.__PRELOADED_STATE__); | |
// the store reference won't change, so just set it once | |
// and forget! | |
window.__PRELOADED_STATE__ = store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment