9.0.1
Fixes
- Fixing memory leak when unmounting
DragDropContext
#720. Thanks @faiwer for finding this one, and for the great issue detail!
Improvements
- More flexible
flow
type forDragDropContext > hook
functions #695. Thanks @kylehalleman!!! - More information in the documentation about using interactive elements (such as
button
) as drag handles. #704 Thanks @kylehalleman!
Changes
DragDropContext > hook
functions now allow you to return a value from your hook function if you want. However, we do not do anything with these returned values. This is also called out in the docs #695
- type OnBeforeDragStartHook = (start: DragStart) => void;
- type OnDragStartHook = (start: DragStart, provided: HookProvided) => void;
- type OnDragUpdateHook = (update: DragUpdate, provided: HookProvided) => void;
- type OnDragEndHook = (result: DropResult, provided: HookProvided) => void;
+ type OnBeforeDragStartHook = (start: DragStart) => mixed;
+ type OnDragStartHook = (start: DragStart, provided: HookProvided) => mixed;
+ type OnDragUpdateHook = (update: DragUpdate, provided: HookProvided) => mixed;
+ type OnDragEndHook = (result: DropResult, provided: HookProvided) => mixed;