Vague, I'd consider it a bug.
React-beautiful-dnd doesn't touch errors that don't relate to it.
Instead of one error, I get 5 bulky errors that have nothing do with react-beautiful-dnd.

React are you using?16.7.0.
react-beautiful-dnd are you running?10.0.3
Chrome.
Any updates on this issue?
Have recreated the issue where it appears a drag is occuring all the time, at least the error message says so. Can be found here. npm-run-start then click the button
Seeing same issue on:
React 16.8.4
react-beautiful-dnd: 11.03
Chrome: 74.0.3729.169
I am a bit busy right now so i cannot pour myself into this one. If somebody wants to take a deeper look at this one just let me know
I'm happy to take this on if nobody else has any objections?
Go for it!
Here is the logic now:
window: cancel the current draginvariant errors: cancel the drag and swallow the error 馃憥window handler)Ideally:
Awesome thanks for the context!
Just a heads up had to edit the rollup config to this:
const commonjsArgs = {
include: 'node_modules/**',
// needed for react-is via react-redux
// https://stackoverflow.com/questions/50080893/rollup-error-isvalidelementtype-is-not-exported-by-node-modules-react-is-inde/50098540
namedExports: {
'node_modules/react-redux/node_modules/react-is/index.js': [
'isValidElementType',
'isContextConsumer',
],
'node_modules/react-is/index.js': [
'isValidElementType',
'isContextConsumer',
],
'node_modules/react-redux/es/components/connectAdvanced.js': [
'isContextConsumer',
],
},
};
for the build to run for me. Not sure if it's happening to anyone else contributing but thought I'd let you know :)
I think we need to fix this. Right now things suck.
rbdcomponentDidCatch that have nothing to do with rbdcomponentDidCatch.setState({}).setState({})abort mode: throw the error and don't recover using .setState({})That's all I think
In order to know what errors are caused by our invariant's we will need to (Potentially) move away from tiny-invariant so we can throw our own custom error type (something like RbdInvariant)
Given this involves some error recovery behaviour changes, it would be great to get it into our next breaking change version #1317
Shipping in 12.0!
Most helpful comment
Shipping in 12.0!