Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: useRafState #684

Merged
merged 5 commits into from
Oct 16, 2019
Merged

feat: useRafState #684

merged 5 commits into from
Oct 16, 2019

Conversation

wardoost
Copy link
Contributor

@wardoost wardoost commented Oct 16, 2019

useState hook that only updates state after requestAnimationFrame. Can be reused in existing hooks in this library. Has the same signature as React's useState.

Copy link
Contributor

@xobotyi xobotyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good one.
LGTM

@xobotyi xobotyi added the enhancement New feature or request label Oct 16, 2019
@wardoost wardoost merged commit 00816a4 into master Oct 16, 2019
@wardoost wardoost deleted the useRafState branch October 16, 2019 12:06
streamich pushed a commit that referenced this pull request Oct 16, 2019
# [12.6.0](v12.5.0...v12.6.0) (2019-10-16)

### Features

* useRafState ([#684](#684)) ([00816a4](00816a4))
@streamich
Copy link
Owner

🎉 This PR is included in version 12.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants