Skip to content
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

ui v2: warning invoke onClose before exiting #870

Merged
merged 1 commit into from
Jan 11, 2021
Merged

Conversation

dschaller
Copy link
Contributor

Description

invoke onClose before the snackbar exits. This allows for the wizard to reset warnings after they have been dismissed.

Testing Performed

manaul

@dschaller dschaller requested a review from a team as a code owner January 9, 2021 03:11
@danielhochman
Copy link
Collaborator

can you give a bit more detail on the use case here? seems like the data flow for a toast/snackbar should be one way

@dschaller
Copy link
Contributor Author

Currently we maintain a list of global warnings that are shown as toasts on the app. To avoid duplicate toasts being presented at once we ensure that these warnings are unique by only inserting new ones. However, once the toast has cleared from the screen we need a way to signal to the parent that it can send the same warning again.

@dschaller dschaller merged commit 038e3d5 into UIV2 Jan 11, 2021
@dschaller dschaller deleted the warningReset branch January 11, 2021 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants