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
I think this is the expected behavior. Strict Mode double-renders your components to ensure that they remain pure, and it also calls useState updaters (see last point). I'm not sure if an 'updater' implies providing a value or a function or either though. But just to be clear, StrictMode is only used in development to catch bugs, it is not meant for production.
I think this is the expected behavior. Strict Mode double-renders your components to ensure that they remain pure, and it also calls useState updaters (see last point). I'm not sure if an 'updater' implies providing a value or a function or either though. But just to be clear, StrictMode is only used in development to catch bugs, it is not meant for production.
React version: 19.0.0
Steps To Reproduce
Link to code example: codesandbox
The current behavior
When change the order of the list, the list item unmounted and then mounted, except for the first element.
The expected behavior
It should not remount during the update phase.
I test the same code on react 18, which has no problem.
The text was updated successfully, but these errors were encountered: