question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

State is frozen after dragging between multiple containers

See original GitHub issue

I’m working on a use-case where results can be dragged from a sidebar (and then removed from the sidebar) into a list of selected items.

After dragging one item from the sidebar list into the “selected” list, the state sometimes gets stuck. If it doesn’t get stuck, the transitions on the next drag event don’t completely work - the newest item in the list will stay in place, and other items kind of move around it.

I’ve been able to replicate a simplified version of my app in CodeSandbox: https://codesandbox.io/s/hopeful-brook-6j00k?file=/src/App.tsx

(Note: the “empty” useDroppable container isn’t fully implemented here, but that shouldn’t affect the issue in question, because I’m starting with a list that has a few items in it)

The monitor state in the DndContext component looks to be stuck on “dragEnd” - I’m not sure if this is just related to the issue, or if the issue is caused by that event somehow not ending.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
zrothausercommented, Aug 16, 2021

Thanks @sanex3339! That was the issue here.

1reaction
sanex3339commented, Aug 3, 2021

@zrothauser in your case you must not use useSortable inside of the DragOverlay => SearchResultItem component. Make a standalone version of SearchResultItem special for SearchResultItem

Im my case i don’t have any useSortable inside my DragOverlay components

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker service stuck in New state (Swarm) - Stack Overflow
I'm facing a strange issue with my Docker Swarm (a cluster of 3 managers and 5 workers). I have many running services right...
Read more >
Changes of State - Center Grove
FREEZING When liquid water freezes, it releases thermal energy and turns into the solid state, ice. VAPORIZATION When water reaches its boiling point...
Read more >
Classifying Matter According to Its State—Solid, Liquid, and Gas
Three states of matter exist—solid, liquid, and gas. ... Liquids have a definite volume, but take the shape of the container.
Read more >
Docker Desktop 4.7 Stops working, suddenly. Frozen containers.
Docker freezes randomly. I cannot work like this. I'm having this issue on several docker desktop versions, 4.5, 4.6 and now on 4.7....
Read more >
How Container Networking Works: Practical Explanation
They can act as tunnels between network namespaces to create a bridge to a physical network device in another namespace, but can also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found