loading...

re: The neatest way to handle alert dialogs in React 🥰 VIEW POST

TOP OF THREAD FULL DISCUSSION
re: This is actually a really cool way to handle confirmations. The only minor problem is, when you press "agree" or "cancel", dialog content disappear...
 

Yeah, I'm not sure but looks like to solve this issue you need to reset confirmationState on material-ui`s Dialog onExited callback. And on close/submit just set "open" prop to false.

Code of Conduct Report abuse