-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Performance][Security Solution][4/4] - General Performance changes (#…
…212488) ## Summary Part 4 (Final) of #212173 ### Testing For setup see testing section here: #212173 (comment) For testing, feel free to add a `console.count('!! - Number of re-renders:)` to `x-pack/solutions/security/plugins/security_solution/public/app/home/index.tsx`. The memoization changes [here](https://github.com/elastic/kibana/pull/212488/files#diff-b0cdd6dc57dd06dba69d90894de8c88a7bb7c71c0e58753f324eb8ba664a0782R18) to the plugin template wrapper, prevented 2 extra re-renders, but there is still an underlying problem of how the `PageTemplateWrapper` is used, as it causes unmounting and remounting of the security views when navigating between pages. The only other change was to rely on React's built in diffing on the alerts page for the page level filters (cherry picked from commit 7f32eb0) # Conflicts: # x-pack/solutions/security/plugins/security_solution/public/detections/pages/detection_engine/detection_engine.tsx
- Loading branch information
1 parent
a571f30
commit cb7c270
Showing
3 changed files
with
44 additions
and
41 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