-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] More memoization work on the editor_frame #102186
Conversation
@elasticmachine merge upstream |
layerId: newLayerId, | ||
updater: props.datasourceMap[state.activeDatasourceId!].insertLayer, | ||
}); | ||
const framePublicAPI: FramePublicAPI = useMemo( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a ref
here would be even better, but it requires way more refactoring than just this place.
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tested and everything still works fine
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
This is some more React reference stabilisation work.
I've managed to reduce a big some re-render issues on the indexpattern dimension panel side, via some memoization work.
Will probably push some more memoization upstream on the EUI level as well.
Tested with slowdown 4x and 6x as well.
Noticed that, in general, referenced operations when in formula are way too expensive compared to others.
Checklist
Delete any items that are not applicable to this PR.
For maintainers