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

fix(Cluster reports): fix infinite table re-render when there are no rules #315

Conversation

gkarat
Copy link
Collaborator

@gkarat gkarat commented Jun 10, 2022

Fixes https://issues.redhat.com/browse/CCXDEV-8272.

The table, to update filteredRows, must look at the RTQ query data, not the state variable reports. The infinite re-render was triggered by the fact that even though previous and current states had reports equal to an empty array, from a JS perspective, they are perceived as different objects ([] === [] ~> false).

@gkarat gkarat added the bug Something isn't working label Jun 10, 2022
@gkarat gkarat self-assigned this Jun 10, 2022
@gkarat gkarat force-pushed the ccxdev-8272-infite-re-render-clsuter-details branch from 603be33 to fcae6c0 Compare June 10, 2022 11:09
@gkarat gkarat enabled auto-merge (squash) June 10, 2022 11:10
@gkarat gkarat disabled auto-merge June 10, 2022 11:10
@gkarat gkarat enabled auto-merge (squash) June 10, 2022 11:10
@gkarat gkarat merged commit 54632ef into RedHatInsights:master Jun 10, 2022
gkarat pushed a commit that referenced this pull request Jun 10, 2022
## [1.4.6](v1.4.5...v1.4.6) (2022-06-10)

### Bug Fixes

* **Cluster reports:** fix infinite table re-render when there are no rules ([#315](#315)) ([54632ef](54632ef))
@gkarat
Copy link
Collaborator Author

gkarat commented Jun 10, 2022

🎉 This PR is included in version 1.4.6 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant