-
Notifications
You must be signed in to change notification settings - Fork 55
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
chore(RecommendationSystems): clear redux store on unmount #1193
Conversation
Codecov ReportAttention:
📢 Thoughts on this report? Let us know! |
Why does the Inventory store need to be cleared on unmount? |
This is needed to avoid cases when users change tabs, sometimes the content of the previous tab is shown in the next tab for milli-seconds. |
@mkholjuraev This feels like it is a workaround for something the Inventory does improperly. Maybe it would be better to investigate a proper fix/feature in the InventoryTable itself. |
@bastilian yeah, it seems this prop is used to show initial loading state when the table is initially mounted. I have created a PR in the inventory to add it to immutable devices table |
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, thanks for the clarification on the call 😄
@mkholjuraev Then does the PR in inventory not make this PR obsolete? |
|
Yup, this seems obsolete. Closing |
Description
Associated Jira ticket: # (issue)
Clears the inventory redux on unmount.
How to test the PR
Please include steps to test your PR.
Before the change
After the change
Dependent work link
Checklist: