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
componentDidUpdate
affects component state
#3742
Comments
Just took a quick look at the issue and it looks like the following is happening:
|
JoviDeCroock
added a commit
that referenced
this issue
Sep 22, 2022
Thank you @JoviDeCroock for your quick action! |
JoviDeCroock
added a commit
that referenced
this issue
Sep 23, 2022
JoviDeCroock
added a commit
that referenced
this issue
Sep 29, 2022
JoviDeCroock
added a commit
that referenced
this issue
Sep 29, 2022
* create test case for #3742 * solve issue * types * golf * add mangle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
componentDidUpdate
affects component stateTo Reproduce
https://codesandbox.io/s/crimson-worker-1koisq?file=/src/index.js
Open Console, it shows
{ count: null, isLoading: false }
Comment the line of
componentDidUpdate
, refresh demo page, in console, it shows{ count: { value: 10 }, isLoading: false }
Expected behavior
Whether or not there is a
componentDidUpdate
event, the console should be{ count: { value: 10 }, isLoading: false }
The text was updated successfully, but these errors were encountered: