Open knaveenkumar3576 opened 2 weeks ago
Latest commit: 5a724502c3072919a07ef1c41b6ae537404098b4
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
This PR includes three changes:
useDroppable function: Changed useIsomorphicLayoutEffect to useEffect Although setting state in a layout effect is useful for measuring the DOM, in this case, it only registers droppable elements during the first render. It can wait until later without causing any UI flickers.
useRect function: Replaced useReducer with useState. Switched to useState because useReducer causes nested updates due to the lack of a bailout mechanism.
useRects function: Replaced useReducer with useState. Switched to useState because useReducer causes nested updates due to the lack of a bailout mechanism .
Please review @clauderic