-
Notifications
You must be signed in to change notification settings - Fork 660
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
Query duplication #4604
Comments
Hi! There is no mechanism as of today to do this in Apollo Kotlin. Issue #646 is closed but issue #3760 can be used to track this. Thanks for the heads up about Retrofit, I wasn't aware that it had such a mechanism, I'll have a look. |
@BoD Hi Sorry for confusion, the dedup mechanism is from our own Repository implementation, not Retrofit. Basically we cache a Map<request, Observable>. If our code calls Repository.get(url) multiple times with same url, the map will retrieve the same observable. |
Ooh right! Thanks for clarifying. I guess this could also work on top of Apollo? |
We are using Apollo store as cache and ridding off our own repository implementation.
…Sent from my iPhone
On Jan 4, 2023, at 1:48 PM, Benoit Lubek ***@***.***> wrote:
Ooh right! Thanks for clarifying. I guess this could also work on top of Apollo?
—
Reply to this email directly, view it on GitHub<#4604 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AANZ66T5XFH4L57N7CDX2ZLWQXAXBANCNFSM6AAAAAATRBWFWM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Thanks for clarifying! Is it ok to close this ticket in favor of #3760? |
For sure thank you! |
Version
3.7.0
Summary
Hello, when I click action button, network debugger shows 50 outgoing requests are sent to our server.
I noticed existing issue that was closed long time ago, not sure if things have changed. #646
Unrelated, with our REST Retrofit Repository implementation, it only fetches from server once.
The text was updated successfully, but these errors were encountered: