This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prevent ConfirmDialog from firing multiple alerts at once
ConfirmDialog wasn’t idempotent - if it was rendered multiple times in a row with `display: true`, multiple confirm modals would be fired. This didn’t happen before in `dash-renderer` but it seems like it is now with the `devtools` updates. Regardless of `dash-renderer`’s behaviour, this refactoring makes the component less brittle to its parent’s logic. This commit also simplifies the logic by making it stateless and removing the `setProps` check now that `setProps` is always defined.
- Loading branch information