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

added debouncing to render(): #6

Merged
merged 3 commits into from
Jul 25, 2020
Merged

Conversation

sc0ttj
Copy link
Owner

@sc0ttj sc0ttj commented Jul 25, 2020

  • setState calls render()
    • render() checks if it needs to wait
    • render() only reads/writes to DOM at 60fps (even if setState called faster than that)

@sc0ttj sc0ttj merged commit 61ca16a into master Jul 25, 2020
- setState calls render()
- render() checks if it needs to wait
- render() only reads/writes to DOM at 60fps
  (even if setState called faster than that)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant