choo: fix updates
This commit is contained in:
+3
-3
@@ -7,7 +7,7 @@ app.model('title', {
|
||||
'update': (action, state) => ({ title: action.payload })
|
||||
},
|
||||
effects: {
|
||||
'update': (action, state, send) => (document.title = action.title)
|
||||
'update': (action, state, send) => (document.title = action.payload)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -26,5 +26,5 @@ app.router((route) => [
|
||||
route('/', mainView)
|
||||
])
|
||||
|
||||
const node = app.start()
|
||||
document.body.appendChild(node)
|
||||
const tree = app.start()
|
||||
document.body.appendChild(tree)
|
||||
|
||||
Reference in New Issue
Block a user