-
Notifications
You must be signed in to change notification settings - Fork 36
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
SSR: fetchOptions: { cache: "no-store" }
does not work.
#182
Comments
Hi @hafaiedhmehdy!
|
I'm doing some housekeeping so I'm closing some older issues that haven't seen activity in a while. |
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better. |
Hi, time is flying! Just to confirm, by default (without Edit: Hi @phryneas, it's been a little while again. I'm very excited to share this little gem I'm working on. Could you please confirm if you have time for a quick review? Thank you! |
Hey all 👋 This still seems like an ongoing issue. Appreciate if you have any updates ? Cheers! |
What's your question exactly? |
When enabling the no-store cache, the build process fails with the following error:
|
@naimulemon that's a Next.js error that's just wrappen in an ApolloError - you would get the same error message if you did a normal |
@phryneas Thanks for pointing that out! The issue seems to be related to the dynamic nature of the Next.js page and how it interacts with Apollo's server-side data fetching. With the error:
Without the error:
However, as per the documentation, using If you have any suggestions or a better approach, I'd love to hear your thoughts! |
Hi Apollo Team, first of all, I want to thank you for this package; it's quite impressive.
Regarding your example for Server-Side Rendering (SSR):
I've been experimenting with
fetchOptions
andfetchPolicy
in queries and can confirm that onlyfetchPolicy
is effective, for example:The
fetchOptions: { cache: "no-store" }
setting in themakeClient()
function appears to have no effect. I find myself having to specify thefetchPolicy
for each invocation ofuseSuspenseQuery
.Edit:
This is how the testing was conducted:
The text was updated successfully, but these errors were encountered: