[FIX] examples: adapt todoapp to new owl structure

This commit is contained in:
Géry Debongnie
2019-04-16 17:17:44 +02:00
parent a22dcdaddf
commit e5e6c50fff
4 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ export function makeStore() {
);
const nextId = Math.max(0, ...todos.map(t => t.id || 0)) + 1;
const state = { todos, nextId };
const store = new owl.extras.Store({ state, actions, mutations });
const store = new owl.Store({ state, actions, mutations });
store.on("update", null, () => {
const state = JSON.stringify(store.state.todos);
window.localStorage.setItem(LOCALSTORAGE_KEY, state);