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

state change in deactivated hook causes re-render #11581

Closed
njh7799 opened this issue Aug 9, 2020 · 1 comment
Closed

state change in deactivated hook causes re-render #11581

njh7799 opened this issue Aug 9, 2020 · 1 comment

Comments

@njh7799
Copy link

njh7799 commented Aug 9, 2020

Version

2.6.11

Reproduction link

https://codesandbox.io/s/quirky-sid-198zy

Steps to reproduce

change state in deactivated hook

What is expected?

DOM should not be a re-rendered.

What is actually happening?

DOM is re-rendered.


When I change state in beforeDestroy hook, DOM is not re-rendered. However if I do the same thing in deactivate hook, DOM is re-rendered for a second, then move to the other route. I think It's definitely a bug.

@posva
Copy link
Member

posva commented Aug 9, 2020

Duplicate of #8819

@posva posva closed this as completed Aug 9, 2020
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

No branches or pull requests

2 participants