[Lens] Optimize unnecessary re-renders#220366
Conversation
|
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
...platform/plugins/shared/chart_expressions/expression_metric/public/components/metric_vis.tsx
Outdated
Show resolved
Hide resolved
...red/chart_expressions/expression_partition_vis/public/components/partition_vis_component.tsx
Outdated
Show resolved
Hide resolved
...red/chart_expressions/expression_partition_vis/public/components/partition_vis_component.tsx
Outdated
Show resolved
Hide resolved
x-pack/platform/plugins/shared/lens/public/app_plugin/lens_top_nav.tsx
Outdated
Show resolved
Hide resolved
...tform/plugins/shared/lens/public/datasources/form_based/dimension_panel/dimension_editor.tsx
Show resolved
Hide resolved
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
cc @dej611 |
|
Starting backport for target branches: 8.19 https://github.com/elastic/kibana/actions/runs/15299639145 |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
## Summary After a conversation with @markov00 I've ran an investigation of unwanted re-render due to an abuse of `useEffect`, which can be easily converted into `useMemo` calls. (cherry picked from commit d859fc0) # Conflicts: # x-pack/platform/plugins/shared/lens/public/editor_frame_service/editor_frame/editor_frame.test.tsx
## Summary After a conversation with @markov00 I've ran an investigation of unwanted re-render due to an abuse of `useEffect`, which can be easily converted into `useMemo` calls.
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
2 similar comments
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
|
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
# Backport This will backport the following commits from `main` to `8.19`: - [[Lens] Optimize unnecessary re-renders (#220366)](#220366) <!--- Backport version: 10.0.0 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Marco Liberati","email":"dej611@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-05-28T12:04:03Z","message":"[Lens] Optimize unnecessary re-renders (#220366)\n\n## Summary\n\nAfter a conversation with @markov00 I've ran an investigation of\nunwanted re-render due to an abuse of `useEffect`, which can be easily\nconverted into `useMemo` calls.","sha":"d859fc004663158cebedef1c5f401172b4be37e0","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Visualizations","release_note:skip","Feature:Lens","backport:version","v9.1.0","v8.19.0"],"title":"[Lens] Optimize unnecessary re-renders","number":220366,"url":"https://github.com/elastic/kibana/pull/220366","mergeCommit":{"message":"[Lens] Optimize unnecessary re-renders (#220366)\n\n## Summary\n\nAfter a conversation with @markov00 I've ran an investigation of\nunwanted re-render due to an abuse of `useEffect`, which can be easily\nconverted into `useMemo` calls.","sha":"d859fc004663158cebedef1c5f401172b4be37e0"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/220366","number":220366,"mergeCommit":{"message":"[Lens] Optimize unnecessary re-renders (#220366)\n\n## Summary\n\nAfter a conversation with @markov00 I've ran an investigation of\nunwanted re-render due to an abuse of `useEffect`, which can be easily\nconverted into `useMemo` calls.","sha":"d859fc004663158cebedef1c5f401172b4be37e0"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
## Summary After a conversation with @markov00 I've ran an investigation of unwanted re-render due to an abuse of `useEffect`, which can be easily converted into `useMemo` calls.
Summary
After a conversation with @markov00 I've ran an investigation of unwanted re-render due to an abuse of
useEffect, which can be easily converted intouseMemocalls.