dnd-kit icon indicating copy to clipboard operation
dnd-kit copied to clipboard

Layout measuring documentation is outdated

Open hexwit opened this issue 1 year ago • 2 comments

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?

hexwit avatar Jul 12 '22 10:07 hexwit

It is outdated. I recommend just reading the source for now.

williamyeny avatar Aug 08 '22 15:08 williamyeny

This CHANGELOG describes the differences

williamyeny avatar Aug 08 '22 15:08 williamyeny