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