1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 02:36:36 +00:00

update design & refresh behavior

This commit is contained in:
Rokt33r
2015-07-17 12:12:47 +09:00
parent 0dde2eb20f
commit 05325e7276
10 changed files with 75 additions and 28 deletions

View File

@@ -0,0 +1,14 @@
var ForceUpdate = function (interval) {
return {
componentDidMount: function () {
this.refreshTimer = setInterval(function () {
this.forceUpdate()
}.bind(this), interval)
},
componentWillUnmount: function () {
clearInterval(this.refreshTimer)
}
}
}
module.exports = ForceUpdate