svelte-dnd-action
svelte-dnd-action copied to clipboard
Uncaught TypeError: Cannot destructure property 'items' of 'dzToConfig.get(...)' as it is undefined.
trafficstars
Hi I'm sometimes getting this error when trying to drag an item, it causes the whole dnd functionality to stop working
Uncaught TypeError: Cannot destructure property 'items' of 'dzToConfig.get(...)' as it is undefined.
at handleDrop (svelte-dnd-action.js?v=9665cf0f:797:9)
handleDrop @ svelte-dnd-action.js?v=9665cf0f:797
link to REPL that reproduces the problem please
I think I've figured it out, it's when recreating a child element is too expensive and you drop one of the elements very quickly. Sometimes I can trigger the bug by moving around the elements enough on this
https://svelte.dev/repl/a3be745847914caaabcd651546edc6dd?version=3.59.1
this entire thing is super laggy on my machine but I can't get it to throw the error. can you make a video (with the console open if possible)?