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: improve shouldRefresh logic for steps/services #711

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

plyr4
Copy link
Contributor

@plyr4 plyr4 commented Aug 17, 2023

fixes a regression introduced by #642

two changes:

  • return False when the resource is NotAsked to avoid refreshing in scenarios where the user hasnt looked at a tab yet.
  • use the current page to check only the relevant resource in scenarios where the user has changed tabs.

@plyr4 plyr4 requested a review from a team as a code owner August 17, 2023 20:47
@plyr4 plyr4 merged commit 3d5c22c into main Aug 17, 2023
@plyr4 plyr4 deleted the fix/infinite-refresh-bug branch August 17, 2023 21:17
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