-
-
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
queries refetch() with variables causing JS error #342
Comments
Can't say much about that error, however it looks to me you are complicating things unnecessarily. You probably have your reasons, but apollo is already providing powerful mechanism for paging and vue-apollo brings reactivity into your queries by default. It looks like you are trying to avoid apollo cache, but a lot of things from the code you are doing are already done by apollo/vue-apollo behind the scenes. E.g. your Another thing is that once you have the |
@jpikora thank you for your feedback. I have been able to refactor and tidy up my orders page massively based on your feedback. Appreciate that and will mark this issue as closed as its overcome my issue through refactoring. Would still say there is an issue with |
Hey @chrispage1 , would you mind sharing a bit of your solution? This is our query:
The data-table gets
Still getting a somewhat similar error:
Not sure if this is related to your described issue though. |
@escapedcat I get that error too. |
@NicoAiko I think we're on the wrong issue here :)
Sorry for reusing this @chrispage1 |
Hi,
We are creating a pagination system that performs a refetch and passes variables along with the fetch. The GraphQL request works great but an error is thrown before anything can be done.
Our code -
So when
onPageChange()
is triggered, it should refetch our getOrders with a new page number, and it does... However, we then get the following error -Is this a bug in the plugin or something that we have done? At the minute I'm leaning towards a bug as this doesn't seem right? Then again the refetch() method isn't well documented.
Thanks!
The text was updated successfully, but these errors were encountered: