diff --git a/routes/_store/LocalStorageStore.js b/routes/_store/LocalStorageStore.js index ecaef04..795c10f 100644 --- a/routes/_store/LocalStorageStore.js +++ b/routes/_store/LocalStorageStore.js @@ -23,7 +23,7 @@ export class LocalStorageStore extends Store { } } this.set(newState) - this.onchange((state, changed) => { + this.on('state', ({changed}) => { Object.keys(changed).forEach(change => { if (this._keysToWatch.has(change)) { this._keysToSave[change] = true