unstale

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

@unstale/cli on npm

@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.

    0.5.0release notes

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.

    0.5.1release notes

  • 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.

    0.5.1release notes

  • Published packages now include sourcemap files referenced by bundle comments, preventing bundlers from failing to load them with ENOENT.

    0.5.0release notes

  • Inline sensors arrays are compared with deepEqual, preventing unnecessary entity mutations and plugin-registry changes that could disrupt in-progress sensor activation.

    0.5.0release notes

  • Inline sensors arrays are compared with deepEqual, preventing unnecessary entity mutations and plugin-registry changes that could disrupt in-progress sensor activation.

    0.5.0release notes

@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.

    0.4.0release notes

  • Provides event-name-to-event-object types, replacing DragDropEvents when typing event objects. Import it from @dnd-kit/abstract.

    0.4.0release notes

  • The re-export from @dnd-kit/react has been removed; use DragDropEventMap or DragDropEventHandlers from @dnd-kit/abstract instead.

    0.4.0release notes

  • Configure feedback through the Feedback plugin instead of the draggable or sortable hook input.

    0.4.0release notes

New APIs and options 2

  • Drop animation can be configured per-draggable through Feedback plugin configuration.

    0.4.0release notes

  • Draggable entities accept per-entity plugin configuration using the existing Plugin.configure() pattern; listed plugins are auto-registered on the manager if needed.

    0.4.0release notes

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.

    0.4.0release notes

@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.

    0.3.0release notes

  • Accepts a function that receives the default modifiers, allowing consumers to extend, remove, or configure entries without replacing the entire array.

    0.3.0release notes

  • Accepts a function that receives the default plugins, allowing consumers to extend, remove, or configure entries without replacing the entire array.

    0.3.0release notes

  • Accepts a function that receives the default sensors, allowing consumers to extend, remove, or configure entries without replacing the entire array.

    0.3.0release notes

  • Adds and re-exports the SortableDraggable type from the React sortable package.

    0.3.0release notes

  • Adds and re-exports the SortableDroppable type from the React sortable package.

    0.3.0release notes

@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.

    0.2.4release notes

Fixes and other changes 1

  • Fixes a bug where the manager returned by useDragDropManager was null on first mount.

    0.2.0release notes