Hey, do we have some restrictions with using the current state values inside ComponentWillUnmount cleanup function ?
Few of my state values are reseted before my code could run 😔
Able to give a bit more context? If you are passing this state out of the component (e.g. to a parent) and then unmounting this component I imagine you would have problems.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey, do we have some restrictions with using the current state values inside ComponentWillUnmount cleanup function ?
Few of my state values are reseted before my code could run 😔
Able to give a bit more context? If you are passing this state out of the component (e.g. to a parent) and then unmounting this component I imagine you would have problems.