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

fix: remove rAF polyfill, add SSR test #401

Merged
merged 1 commit into from Mar 13, 2020
Merged

fix: remove rAF polyfill, add SSR test #401

merged 1 commit into from Mar 13, 2020

Conversation

nolanlawson
Copy link

@nolanlawson nolanlawson commented Dec 29, 2019

As far as I can tell, the rAF polyfill is only needed for SSR support (#7). rAF has been available in browsers since IE10 so it's unlikely we need it for browser support.

This PR adds a test (yarn test:ssr) to make sure that SSR is working correctly, and also removes the rAF polyfill. As the test demonstrates, we don't actually use rAF in any of the render() function (only on button clicks or similar interactions), so we can safely remove it AFAICT.

@nolanlawson
Copy link
Author

Rebased, fixed conflicts

@EtienneLem EtienneLem merged commit bfada8f into master Mar 13, 2020
@EtienneLem EtienneLem deleted the nolan/test-ssr branch March 13, 2020 12:10
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.

None yet

2 participants