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
The batchUpdate method processes the update queue in the wrong order which causes bugs in my app.
I am doing an update to remove a component, then the next update deletes an object that's used by the component. Doing this in reverse order means the component attempts to access an undefined object which crashes the app.
I know the source code says this is for performance reasons, but it breaks compatibility with React. If I reverse the order of the updates, my app will no longer work in development where I use React.
Please consider using shift instead of pop.
The text was updated successfully, but these errors were encountered:
The batchUpdate method processes the update queue in the wrong order which causes bugs in my app.
I am doing an update to remove a component, then the next update deletes an object that's used by the component. Doing this in reverse order means the component attempts to access an undefined object which crashes the app.
I know the source code says this is for performance reasons, but it breaks compatibility with React. If I reverse the order of the updates, my app will no longer work in development where I use React.
Please consider using shift instead of pop.
The text was updated successfully, but these errors were encountered: