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 StrictMode is enabled from React 18, unmount is called twice. unmount is called immediately after mount to overwrite the offset to 0 because the contextProvider feature saves the offset in unmount The unmount is called immediately after the mount, and the offset is overwritten to 0.
Therefore, saving the offset in context does not work.
The text was updated successfully, but these errors were encountered:
When StrictMode is enabled from React 18, unmount is called twice. unmount is called immediately after mount to overwrite the offset to 0 because the contextProvider feature saves the offset in unmount The unmount is called immediately after the mount, and the offset is overwritten to 0.
Therefore, saving the offset in context does not work.
The text was updated successfully, but these errors were encountered: