Created
December 23, 2017 00:33
-
-
Save erichulburd/bfa8c967e0df021b51f3fa09f63b452a to your computer and use it in GitHub Desktop.
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
const applyForce = (action$, _store) => | |
action$.ofType(actions.APPLY_FORCE_CLICK) | |
.throttleTime(100) | |
// Where payload here would be the index of the ball that the user is applying force on. | |
.map(action => actions.applyForce(action.payload)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment