New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dnd with 2 tables, 2 routes, redux. "Cannot have two HTML5 backends at the same time" #1363
Comments
@AkselAllas thank you for the report! I'm looking into it now. |
I'm having trouble re-creating this. However, I found this: It looks like this problem occurs when multiple react-dnd components are used in an application. Though it appears as if the latest versions of react-dnd have solved this issue. Are you using react-dnd in your app? If so, which version? If not, if you grep through your node_modules, do you see any of your dependencies using react-dnd? |
Thank you! It now works :) I tried my error case again. In 3.1.1 the error was always reproducible. Then with both 3.1.2 and 3.1.3 the reproducible case didn't give error anymore. Something I failed to mention is that in route 1, I had 2 instances of mui-datatables rendered. Both with some different custom render functions and etc. Also I grep'ed my node_modules. After removing mui-datatables from package.json, I didn't have any react-dnd files. (except babel-loader cache and material-ui changelog files.) Thank you for maintaining this package. |
Also faced with the same problem. After updating the package, everything went smoothly. Thanks you |
Glad to hear, thank you all for the report! |
I'm getting this error on mui-datatables 3.4.1 after upgrading from v2 - another part of my application uses react-dnd with the react-dnd-mouse-backend. When switching between the two screens I still get this crash. Any solution? |
I have 2 routes: route1 and route2, which both render a MUI-datatable.
In 3.1.1, when I switch from route1 to route2, i get an error:
Cannot have two HTML5 backends at the same time
Stacktrace shows that this is a dnd error. As such, I downgraded to 3.0.1 and now the error doesn't happen.
I hope this is useful. I can provide more details if necessary on Thursday.
Full stack trace of error:
The text was updated successfully, but these errors were encountered: