Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Refactor the draggable component to avoid passing around unnecessary props #18756
This PR is extracted from #18685
It does a few things:
I also think this PR makes it easier to support multiple blocks dragging in the future if needed.
nosolosw left a comment
Tested this for top-level and children blocks, with fixed toolbar and spotlight mode, with admin and contributors roles. Everything worked as before.
Code-wise, this refactor improves the overall readability: good call on moving the isDragging logic to the Redux state!
I believe the removal of the