-
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 unnecessary rerendering of
MessageTableEntry
component. (#19899)
* 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. * Avoid rerendering of `MessageTableEntry` when route changes. * Use function introduced for retrieving current path. --------- Co-authored-by: Linus Pahl <[email protected]>
- Loading branch information
1 parent
1fc7f56
commit 12b41f8
Showing
1 changed file
with
33 additions
and
35 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