npm / @dnd-kit/react
@dnd-kit/react
What changed in @dnd-kit/react 0.4 to 0.5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
4 breaking5 new APIs and options6 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@dnd-kit/react 0.58 changes
New APIs and options 3
Accepts a disabled object to disable dragging and dropping independently, while preserving the existing boolean behavior.
Accepts a disabled object to disable dragging and dropping independently, while preserving the existing boolean behavior.
Accepts a disabled object to disable dragging and dropping independently, while preserving the existing boolean behavior.
Fixes and other changes 5
Draggable, droppable, or sortable properties first read on a later render now update correctly; subscriptions persist across view updates, and getters returning new objects no longer cause update loops.
Sortable bindings now preserve an explicit null transition instead of replacing it with the default, so sortable items stop animating when transition is null; partial transitions still merge with defaults.
Published packages now include sourcemap files referenced by bundle comments, preventing bundlers from failing to load them with ENOENT.
Inline sensors arrays are compared with deepEqual, preventing unnecessary entity mutations and plugin-registry changes that could disrupt in-progress sensor activation.
Inline sensors arrays are compared with deepEqual, preventing unnecessary entity mutations and plugin-registry changes that could disrupt in-progress sensor activation.
@dnd-kit/react 0.47 changes
Breaking changes 4
Provides event-name-to-handler-signature types, replacing DragDropEvents when typing event handlers. Import it from @dnd-kit/abstract.
Provides event-name-to-event-object types, replacing DragDropEvents when typing event objects. Import it from @dnd-kit/abstract.
The re-export from @dnd-kit/react has been removed; use DragDropEventMap or DragDropEventHandlers from @dnd-kit/abstract instead.
Configure feedback through the Feedback plugin instead of the draggable or sortable hook input.
New APIs and options 2
Drop animation can be configured per-draggable through Feedback plugin configuration.
Draggable entities accept per-entity plugin configuration using the existing Plugin.configure() pattern; listed plugins are auto-registered on the manager if needed.
Fixes and other changes 1
Defers synchronous re-rendering to a microtask when signal updates occur within a React effect, avoiding flushSync during a React lifecycle method.