Skip to content

Instantly share code, notes, and snippets.

@erichulburd
Created December 23, 2017 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erichulburd/bfa8c967e0df021b51f3fa09f63b452a to your computer and use it in GitHub Desktop.
Save erichulburd/bfa8c967e0df021b51f3fa09f63b452a to your computer and use it in GitHub Desktop.
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