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

chore(RecommendationSystems): clear redux store on unmount #1193

Closed
wants to merge 1 commit into from

Conversation

mkholjuraev
Copy link
Contributor

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:

  • The commit message has the Jira ticket linked
  • PR has a short description
  • Screenshots before and after the change are added
  • Tests for the changes have been added
  • README.md is updated if necessary
  • Needs additional dependent work

@mkholjuraev mkholjuraev requested a review from a team as a code owner November 10, 2023 13:23
Copy link

codecov bot commented Nov 10, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Files Coverage Δ
...yTabs/ConventionalSystems/RecommendationSystems.js 0.00% <0.00%> (ø)

📢 Thoughts on this report? Let us know!

@bastilian
Copy link
Member

Why does the Inventory store need to be cleared on unmount?

@mkholjuraev
Copy link
Contributor Author

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.

@bastilian
Copy link
Member

@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.

@mkholjuraev
Copy link
Contributor Author

mkholjuraev commented Nov 14, 2023

@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

Copy link
Contributor

@AsToNlele AsToNlele left a 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 😄

@bastilian
Copy link
Member

@mkholjuraev Then does the PR in inventory not make this PR obsolete?

@mkholjuraev
Copy link
Contributor Author

@mkholjuraev Then does the PR in inventory not make this PR obsolete?
@bastilian yes it should be. I am making sure this is obsolete. If it is obsolete, I will close this PR.

@mkholjuraev
Copy link
Contributor Author

Yup, this seems obsolete. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants