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

Handle react 16’s async rendering #39

Merged
merged 1 commit into from
Sep 19, 2018
Merged

Conversation

ryankshaw
Copy link
Contributor

this is a workaround for react 16 since ReactDOM.render is not
guaranteed to return the instance synchronously (especially if called
within another component's lifecycle method eg: componentDidMount). see:
facebook/react#10309 (comment)

Test plan:

  • when rendered into canvas-lms using react16, it shouldn’t throw errors

this is a workaround for react 16 since ReactDOM.render is not 
guaranteed to return the instance synchronously (especially if called
within another component's lifecycle method eg: componentDidMount). see:
facebook/react#10309 (comment)

Test plan:
* when rendered into canvas-lms using react16, it shouldn’t throw errors
@ryankshaw ryankshaw requested a review from a team as a code owner September 19, 2018 18:49
@ryankshaw ryankshaw merged commit 29789b0 into master Sep 19, 2018
@ryankshaw ryankshaw deleted the handleAsyncRendering branch September 19, 2018 19:36
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