You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When clicking the button the state is properly modified and the component re-renders. Each of these times componentWillUpdate is called. The issue appears when e.g. modifying the render function afterwards. Changing anything does trigger a hot reload, but afterwards the component does not update but unmounts and remounts. This calls the constructor and the state eventually gets reset.
As far as I know the component should not unmount. Someone on IRC suggested this might be related with a keying issue further up the tree, but I was not able to notice any differences in the react-ids in the DOM.
Thank you for providing this boilerplate and looking into this.
Cheers
Torsten
The text was updated successfully, but these errors were encountered:
Hey folks
I stumbled across this today.
To reproduce: Clone from master, npm install.
When clicking the button the state is properly modified and the component re-renders. Each of these times componentWillUpdate is called. The issue appears when e.g. modifying the render function afterwards. Changing anything does trigger a hot reload, but afterwards the component does not update but unmounts and remounts. This calls the constructor and the state eventually gets reset.
As far as I know the component should not unmount. Someone on IRC suggested this might be related with a keying issue further up the tree, but I was not able to notice any differences in the react-ids in the DOM.
Thank you for providing this boilerplate and looking into this.
Cheers
Torsten
The text was updated successfully, but these errors were encountered: