Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

dedup is not working with apollo-link-batch-http #157

Closed
seeden opened this issue Oct 17, 2017 · 7 comments
Closed

dedup is not working with apollo-link-batch-http #157

seeden opened this issue Oct 17, 2017 · 7 comments
Labels

Comments

@seeden
Copy link

seeden commented Oct 17, 2017

I can see in one request same queries with same variables. These queries are batched because I am using apollo-link-batch-http. Without it I will see 2 same requests.
Are you going to add dedup for batched requests as well?

Queries

Currently I am using:

    link: ApolloLink.from([
      retryLink,
      headersLink,
      dedupLink,
      httpLink,
    ]),
    "apollo-cache-inmemory": "^0.2.0-rc.1",
    "apollo-client": "^2.0.0-rc.3",
    "apollo-link": "^0.8.0",
    "apollo-link-http": "^0.8.0",
    "apollo-link-batch-http": "^0.4.0",
    "apollo-link-retry": "^0.8.0",
    "apollo-link-dedup": "^0.6.0",
@tiffwu
Copy link

tiffwu commented Nov 10, 2017

I'm having the same issue.

@PatrickJS
Copy link

PatrickJS commented Nov 26, 2017

I'm also having the same issue.

Tipe CMS

@kaelumania
Copy link

same issue here

@PatrickJS
Copy link

PatrickJS commented Dec 28, 2017

I have a fork of apollo-link-batch-http that combines the logic with apollo-link-dedup

npm install --save @tipe/apollo-dedup-batch-http-link

the options are the same as both combined
🎉 🎉
cc @tiffwu @kaelumania @seeden

Tipe CMS

@smeijer
Copy link

smeijer commented Jan 13, 2018

@gdi2290, sounds awesome. But wouldn't it be possible to submit an PR to fix the issue? Instead of creating a package with the same functionality?

@PatrickJS
Copy link

PatrickJS commented Jan 13, 2018

@smeijer I believe they're making batching a default feature which is why they're not fixing this until that's done (a lot of internal changes)

Tipe CMS

@evans evans added the bug label Feb 15, 2018
@JoviDeCroock
Copy link
Contributor

Since this issue is really outdated I am closing it but if you are still concerned about this feel free to reopen and I'll get back to you asap.

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

No branches or pull requests

7 participants