yarn react-dnd 7.4.0
v7.4.0 Release

latest releases: 16.0.1, 16.0.0, 15.1.2...
5 years ago

Minor

  • Add a third argument to the collector functions in DragSource and DropTarget 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 the wrapInTestContext utility function

Patch

  • Throw invariant errors when components are rendered outside of a DragDropContext.
  • Hooks API updates

Don't miss a new react-dnd release

NewReleases is sending notifications on new releases.