-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear interventions after they've been displayed (#5341)
* Add a clearIntervention action creator Add a CLEAR_INTERVENTION action to clear any stored interventions. Don't clear interventions on next subject. Update tests. * Add onUnmount to Intervention Add an onUnmount callback to the Intervention component, and call it on component cleanup. Memo-ise Intervention to prevent unnecessary renders. Update tests. * Clear interventions on unmount Call the clearIntervention action when the Intervention component unmounts.
- Loading branch information
1 parent
33eb94a
commit 9461eb8
Showing
5 changed files
with
69 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters