Open hexwit opened 2 years ago
The page https://docs.dndkit.com/api-documentation/context-provider has a section about layout measuring. But code sample presented there doesn't work in "@dnd-kit/core": "^6.0.5". Sample provided:
import {DndContext, LayoutMeasuringStrategy} from '@dnd-kit/core'; <DndContext layoutMeasuring={{strategy: LayoutMeasuringStrategy.Always}} />
Actual code used in story book:
<DndContext measuring={{ droppable: { strategy: MeasuringStrategy.Always, }, }} .....
Am I missing something, or documentation is outdated?
It is outdated. I recommend just reading the source for now.
This CHANGELOG describes the differences
The page https://docs.dndkit.com/api-documentation/context-provider has a section about layout measuring. But code sample presented there doesn't work in "@dnd-kit/core": "^6.0.5". Sample provided:
Actual code used in story book:
Am I missing something, or documentation is outdated?