github react-dnd/react-dnd v11.0.0

latest releases: v16.0.0, v15.1.2, v15.1.0...
3 years ago

Breaking Changes

Update Backends to use named exports for BackendFactory functions instead of default exports.

e.g.
import HTML5Backend from 'react-dnd-html5-backend
👇
import { HTML5Backend } from 'react-dnd-html5-backend

In general, throughout the app we've minimized the usage of default exports as well. They interfere with type correctness and screw with UMD builds (e.g. having to scrape a .default property off of a UMD global).

Minor Changes

  • Expose internal hook useDragDropManager at top level
  • Add profiling function to backend interface
  • Make handler functions public on backends

Patch Changes

  • Correct memory leak in drag previews (#2423)
  • Improve and correct typings

Don't miss a new react-dnd release

NewReleases is sending notifications on new releases.