4 ms·
It does reset, because toggling that flag will unmount the old instance of the component, and then mount a new instance. This is the same behavior as has alway
by acemarke 6y ago
It does reset, because toggling that flag will unmount the old instance of the component, and then mount a new instance.
This is the same behavior as has always existed with class components and `this.setState()`. Component-scoped state only exists as long as that specific instance of the component is mounted.