-
Notifications
You must be signed in to change notification settings - Fork 0
feat: update axios configuration #37
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
base: develop
Are you sure you want to change the base?
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| instance.interceptors.response.eject(interceptor) | ||
| if (isTokenExpired && !originalConfig._retry) { | ||
| // Mark this request as retried to prevent infinite loops | ||
| originalConfig._retry = true |
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.
do we need to set it back to false?
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.
Yes, we do need to reset _retry back to false
src/services/networking/axios.ts
Outdated
| instance.interceptors.response.use( | ||
| (response: AxiosResponse) => { | ||
| // Add response logging for debugging | ||
| if (configs.DEBUG_ENABLED) { |
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.
I think we don't need these logging as we can see the requests from network tab
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.
Sure, let me remove them
Uh oh!
There was an error while loading. Please reload this page.