-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid excessive reexecution of
useSendTelemetry
. (#19896)
* Avoid excessive reexecution of `useSendTelemetry`. * Cleaning up. * Introducing reusable function. * Adding tests. * Fixing up. * Making hook throw error when context is missing. * Fixing test filename. * Fixing state handling in `SetProfileModal` test uncovered by change. * Removing console statement. * Making `useSendTelemetry` resilient against missing context. * Handling absent context as previously. * Disabling linter hint.
- Loading branch information
1 parent
6c10c75
commit 2d20aea
Showing
6 changed files
with
79 additions
and
47 deletions.
There are no files selected for viewing
File renamed without changes.
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 was deleted.
Oops, something went wrong.
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