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
{{ message }}
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.
Thank you for the report @plouh. This has been reverted. TypeScript does not have as simple of a "conditional import" process as ES6 does, so I'll dwell on this.
unstable_batchedUpdates in react-dom allows multiple state changes to result in a single render.
Alternatives:
Conditionally import from react-dom if present. (TypeScript limitation?)
Find an equivalent function in react using React Fiber instead of ReactDOM. Preferred, as this will support both React Native and React DOM.
quisido
changed the title
Batch re-renders on state change in unstable_batchedUpdates
Batch re-renders on state change.
Sep 24, 2019
Current behavior:
One component subscribed to two state properties rerenders twice if both change at the same time.
Desired behavior:
It should rerender once.
The text was updated successfully, but these errors were encountered: