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

Lazy version of okHttpCallFactory? #5775

Closed
ychescale9 opened this issue Apr 2, 2024 · 2 comments · Fixed by #5784
Closed

Lazy version of okHttpCallFactory? #5775

ychescale9 opened this issue Apr 2, 2024 · 2 comments · Fixed by #5784

Comments

@ychescale9
Copy link
Contributor

Use case

Other libraries with OkHttp integration (e.g. Retrofit, Coil) provide API for setting Call.Factory lazily in order to defer the initialization of OkHttpClient (using Dagger's Lazy). See example in this PR.

Describe the solution you'd like

Does it make sense for ApolloClient.Builder to support the same?

@martinbonnin
Copy link
Contributor

Fun stuff, I was looking at this issue no later than last week in the context of ConnectivityManger instanciation. It definitely makes sense 👍 . I didn't get to it and moved to something else now. If you want to open a pull request, please go for it.

Copy link
Contributor

github-actions bot commented Apr 8, 2024

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Kotlin usage and allow us to serve you better.

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

Successfully merging a pull request may close this issue.

2 participants