npm / @dnd-kit/react
@dnd-kit/react
What changed in @dnd-kit/react 0.2 to 0.5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
4 breaking10 new APIs and options7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@dnd-kit/react 0.56 changes
New APIs and options 1
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.
@dnd-kit/react 0.36 changes
New APIs and options 6
Adds a dropAnimation prop to disable the drop animation with null, customize its timing, or provide a custom animation function.
Accepts a function that receives the default modifiers, allowing consumers to extend, remove, or configure entries without replacing the entire array.
Accepts a function that receives the default plugins, allowing consumers to extend, remove, or configure entries without replacing the entire array.
Accepts a function that receives the default sensors, allowing consumers to extend, remove, or configure entries without replacing the entire array.
Adds and re-exports the SortableDraggable type from the React sortable package.
Adds and re-exports the SortableDroppable type from the React sortable package.
@dnd-kit/react 0.22 changes
New APIs and options 1
A drag-and-drop event type alias is exposed and re-exported from @dnd-kit/dom and @dnd-kit/react for convenience.
Fixes and other changes 1
Fixes a bug where the manager returned by useDragDropManager was null on first mount.