1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Simplify condition in mobx example (#2812)

This commit is contained in:
Brikou CARRE 2017-08-19 18:02:40 +02:00 committed by Tim Neutkens
parent 18e447afc5
commit c689bc9f8b

View file

@ -21,7 +21,7 @@ class Store {
}
export function initStore (isServer, lastUpdate = Date.now()) {
if (isServer && typeof window === 'undefined') {
if (isServer) {
return new Store(isServer, lastUpdate)
} else {
if (store === null) {