-
Notifications
You must be signed in to change notification settings - Fork 933
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
Allow async onRowsDelete #835
base: master
Are you sure you want to change the base?
Conversation
Hey @pkmnct, trying to get a handle on the exact use case here, as this was a spinoff from an issue that was asking specifically about a confirmation dialog. In my experimentation, there is no issue with using a confirmation dialog because it takes focus and prevents other code execution until the dialog is dealt with, allowing true/false to be returned from the callback. Were you trying to do something other than use a confirmation dialog? Additionally, I think this needs some babel plugin and configuration love, as I couldn't run any examples using |
@gabrielliwerant We were wanting to use a Material UI Dialog component, rather than a window.confirm dialog. Here's an Code Sandbox: https://codesandbox.io/s/material-ui-datatables-async-onrowsdelete-example-wktpj |
@pkmnct Gotcha, that makes sense. Any thoughts on how you want to handle the babel configs to handle |
@gabrielliwerant I'm not having any issues using this PR branch locally testing, what error/warning/issue are you running into with the async/await and babel? |
Webpack can't run the sections with In particular, I get a If you can't reproduce this issue, it might make sense for me to create a branch based on this one that fixes it. |
No description provided.