Update effects sections to latest API (#187)

They have to call done!
This commit is contained in:
Todd Kennedy
2016-07-21 10:16:46 -07:00
committed by GitHub
parent a913065262
commit 147dabfcd7
2 changed files with 12 additions and 3 deletions
+4 -1
View File
@@ -11,7 +11,10 @@ app.model({
update: (data, state) => ({ title: data.payload })
},
effects: {
update: (data, state, send) => (document.title = data.payload)
update: (data, state, send, done) => {
document.title = data.payload
done()
}
}
})