Flipkart / recyclerlistview

High performance listview for React Native and web!
Apache License 2.0
5.22k stars 429 forks source link

contextProvider offset does not work in apps with StrictMode enabled #779

Open satoren opened 5 months ago

satoren commented 5 months ago

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.