Created
October 17, 2015 00:47
-
-
Save aleclarson/7cbd136304db76db7064 to your computer and use it in GitHub Desktop.
TimerMixin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TimerMixin = require "react-timer-mixin" | |
| combine = require "combine" | |
| steal = require "steal" | |
| hook = require "hook" | |
| module.exports = (descriptor) -> | |
| methods = combine {}, TimerMixin | |
| willUnmount = steal methods, "componentWillUnmount" | |
| hook.after descriptor, "componentWillUnmount", willUnmount | |
| combine descriptor, methods |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment