You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just hit an issue in my app because I forgot to render <DragOverlay> inside my <DndContext>. Would it be helpful to have DragOverlay, useDraggable, useDroppable, .etc. throw an "invariant violation" if used outside of DndContext? react-router does this if you try to use a Route outside of a Router.
Could either use the invariant library or be a simple console.error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just hit an issue in my app because I forgot to render
<DragOverlay>
inside my<DndContext>
. Would it be helpful to haveDragOverlay
,useDraggable
,useDroppable
, .etc. throw an "invariant violation" if used outside ofDndContext
?react-router
does this if you try to use aRoute
outside of aRouter
.Could either use the invariant library or be a simple
console.error
.Beta Was this translation helpful? Give feedback.
All reactions