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(ui): infinite loading for refresh attempted on app visit #19491

Merged
merged 5 commits into from
Jan 24, 2025

Conversation

chirag-madlani
Copy link
Collaborator

Describe your changes:

Fixes: Loading issue when user visit application with expired token and valid refresh token

  • If we try to access our app which has an expired token but a valid refreshToken, we try to get new token using the refreshToken.
  • During this process we couldn't recover app from forever loading state
  • To avoid that I have adjust code to recall all the failed api calls so that app will work normally..

Issue

I have to refresh the page to app works

Screen.Recording.2025-01-23.at.2.26.02.PM.mov

Fix

No need to do anything to make app work

Screen.Recording.2025-01-23.at.2.26.45.PM.mov

I worked on ... because ...

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

aniketkatkar97
aniketkatkar97 previously approved these changes Jan 23, 2025
Copy link
Contributor

github-actions bot commented Jan 23, 2025

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
64.63% (40893/63277) 40.68% (16356/40208) 44.09% (4970/11272)

Copy link

@chirag-madlani chirag-madlani merged commit 1e7377c into main Jan 24, 2025
15 of 17 checks passed
@chirag-madlani chirag-madlani deleted the fix-infinite-loading branch January 24, 2025 05:46
Copy link
Contributor

Failed to cherry-pick changes to the 1.6.3 branch.
Please cherry-pick the changes manually.
You can find more details here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch UI UI specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants