-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
[fresh_dio] Recommended way to log refresh and retry requests #93
Comments
@LukasMirbt did you find a way fix this? |
This should be fixed by #98 |
#98 prevents accidentally causing a loop but does not address how to log refresh and retry requests. I currently have the following setup:
This works but it's a bit ugly. |
What is the recommended way to log refresh and retry requests? Or adding other kinds of interceptors to those requests.
There is currently a pitfall that causes requests to stall indefinitely when passing the same httpClient into the Fresh constructor that later has the Fresh interceptor attached to it.
Could it be a good idea to rename the parameter, adding documentation or to add an assert that the Dio instance passed in should not have a Fresh interceptor?
The text was updated successfully, but these errors were encountered: