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:
parent
18e447afc5
commit
c689bc9f8b
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue