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

Revert "[ShallowRenderer] Queue/rerender on dispatched action after render component with hooks" #14839

Merged

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Feb 13, 2019

Reverts #14802

This is not the right fix. This takes the code branch that was written for render phase updates, and reuses it for regular updates. Maybe it works, maybe it doesn't.

If we want to fix it, let's rename the variables and make sure the code actually works for general updates, and not just render phase updates. I have no confidence that it does because it was adapted 1:1 from the server renderer.

…ender component with hooks (#14802)"

This reverts commit 6d4038f.
@gaearon gaearon merged commit 0e4135e into master Feb 13, 2019
@gaearon gaearon deleted the revert-14802-rodrigopr/shallow-dispatch-out-of-render branch April 3, 2019 23:00
NMinhNguyen referenced this pull request in enzymejs/react-shallow-renderer Jan 29, 2020
…ender component with hooks (#14802)" (#14839)

This reverts commit 6d4038f0a638d82e9e528f02cc5a86afb410cf11.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants