Skip to content

How deep can useDndMonitor see? #279

Answered by clauderic
growthwp asked this question in Q&A
Discussion options

You must be logged in to vote

Do any of those components render other <DndContext> providers? If so, it's expected that useDndMonitor would only "see" within its own context provider:

<DndContext> // Drag start / over / end
  <Sidebar/> // `useDndMonitor` catches event
  <Board> // `useDndMonitor` catches event
     <DndContext>
        <Container /> // `useDndMonitor` does not catch event because it happened on a `<DndContext>` provider above
        <Container />
     </Section>
  </Board>
</DndContext>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@growthwp
Comment options

Answer selected by growthwp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants