apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Refetching with same variable as first call throws error

Open FrostMegaByte opened this issue 3 years ago • 0 comments

Version

v4.0.1-rc.1

Reproduction link

https://codepen.io/frostmegabyte/pen/bGqRVOp

Steps to reproduce

Run an Apollo Smart Query with a variable. This goes well. Then change the variable and run query. This also goes well. Now change back to the first variable and run query. Then the console throws _this2.options.variables.call is not a function.

What is expected ?

I expected the query to run once again and receive the same results as running it the first time.

What is actually happening?

Error is thrown in console and application crashes to error page.

Additional comments?

I am using the standard caching in Nuxt.js.

This bug report is available on Nuxt community (#c384)

FrostMegaByte avatar May 25 '21 11:05 FrostMegaByte