npm.io
0.5.1 • Published 1 week ago

@dnd-kit/state

Licence
MIT
Version
0.5.1
Deps
2
Size
33 kB
Vulns
0
Weekly
0
Stars
17.7K

@dnd-kit/state

Stable release

Internal reactive state management library for @dnd-kit, built on Preact Signals.

Note: This is an internal package used by @dnd-kit/abstract and the framework adapters. You generally don't need to install or use it directly.

Overview

Provides fine-grained reactivity primitives that power the core drag and drop state:

  • Signals — signal, computed, ReadonlySignal
  • Effects — effect, effects, batch, untracked
  • Decorators — reactive, derived, enumerable for class-based reactive properties
  • Utilities — deepEqual, snapshot, WeakStore, ValueHistory