-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
Debounce should be ignored in SSR #599
Comments
Hello! Can you create a reproduction link? https://codesandbox.io/ |
I am also experiencing this. As a workaround, I employed mounted() {
// debounce settings need to be applied on the client, otherwise, hydration problems ensue
const options = {
debounce: 300,
};
this.$apollo.queries.QUERY_NAME.setOptions(options as any)
} Ideally, |
Solution above doesn't work for me. Option is set, but on client side debounce is still 0. |
@dhritzkiv 's answer didn't work for me either but I managed to solve it that way.
It didn't work without stopping and starting so I think it is necessary so apollo resets watchers (?) correct me if I'm wrong |
FWIW, 8d5734d fixed using the debounce issue on the server, and I am now able to use it as intended (from the smart query component options). Using vue-apollon 3.0.2, @nuxtjs/apollo 4.0.0-rc18, apollo-client 2.6.8 |
Debounce option in query to more performatic search, crash SSR
When I use
debounce: 0
. Console output:Using
debounce: 250
. Console output:My graphql API runs on the same server that renders my app, for more perfomance I use apollo-link-schema.
My query:
The search variable updates every time when I type
My configuration:
Thank's for attention.
The text was updated successfully, but these errors were encountered: