Allow async onRowsDelete#835
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.