Minor
- Add a third argument to the
collector
functions inDragSource
andDropTarget
that includes the props of the current component. (e.g.collect(connect, monitor, props)
- Connect functions can now accept Ref objects. (e.g.
connectDragSource(ref)
) - Add a new
DragPreviewImage
renderless component that wires up Drag Preview images. - Improve decorated types to include as much of the original types as we can. Our typing strategy for this followed the same pattern that react-redux uses.
- Add
react-dnd-test-utils
package, which exposes thewrapInTestContext
utility function
Patch
- Throw invariant errors when components are rendered outside of a DragDropContext.
- Hooks API updates