-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
3.9.7 switching fetch in HttpLink to Axios triples speed #11770
Comments
It's hard to tell anything here without seeing what exactly you did - please show us some code :) Also, how did you measure this speed increase? Is this in RSC, SSR or in the Browser? How big is your response? I think we'll generally need a bit more context here :) |
We're closing this issue now but feel free to ping the maintainers or open a new issue if you still need support. Thank you! |
Here is some code. It is pretty self explanatory though. Switch Apollo-CLient to use cross-fetch. Here -
|
@billnbell2 appreciate the code, but I'm not sure what you're looking for from us? |
Why do I need to use cross-fetch ? If I leave it the default it takes Apollo Client 1-2 seconds per calls, when I use cross-fetch we are consistently at 200ms. Same exact call. |
Can you try it yourself and see if you get similar perf gains? |
You are absolutely free to use whatever The only thing I can think might be happening here is that perhaps something is patching To be honest, even if this weren't it, we wouldn't make any current changes as using the global |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Issue Description
I switched fetch in HttpLink to Axios and the speed went from 5-7 seconds to 1 second! NEXT JS
WHY
?
Link to Reproduction
NO
Reproduction Steps
NOPE
@apollo/client
version3.9.7
The text was updated successfully, but these errors were encountered: