Skip to content
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

dashboards: prevent unnecessary re-renders of cards #4046

Conversation

spadgett
Copy link
Member

The variables returned from mapStateToProps were a different object each time, causing unnecessary rendering.

/assign @kyoto

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 22, 2020
@spadgett
Copy link
Member Author

/cc @rhamilto

@openshift-ci-robot openshift-ci-robot added component/core Related to console core functionality component/monitoring Related to monitoring approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jan 22, 2020
@spadgett spadgett force-pushed the monitoring-dashboards-rendering branch from 7806b80 to 694925a Compare January 22, 2020 23:37
The variables returned from `mapStateToProps` were a different object
each time, causing unnecessary rendering.
@spadgett spadgett force-pushed the monitoring-dashboards-rendering branch from 694925a to a5321f8 Compare January 23, 2020 00:02
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 23, 2020
@kyoto
Copy link
Member

kyoto commented Jan 23, 2020

/lgtm
Thanks @spadgett

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 23, 2020
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kyoto, spadgett

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kyoto
Copy link
Member

kyoto commented Jan 23, 2020

/retest

2 similar comments
@kyoto
Copy link
Member

kyoto commented Jan 23, 2020

/retest

@spadgett
Copy link
Member Author

/retest

@openshift-merge-robot openshift-merge-robot merged commit 35ac554 into openshift:master Jan 23, 2020
@spadgett spadgett added this to the v4.4 milestone Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/core Related to console core functionality component/monitoring Related to monitoring lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants