apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Update TS definition for the query prefetch option

Open dhritzkiv opened this issue 4 years ago • 1 comments

Update the prefetch option to reflect that it's only ever a boolean, not also a function that returns a boolean.

I was attempting to use it as a function that returns a boolean, but it simply gets interpreted as truthy. It seems the source code only expects a boolean.

dhritzkiv avatar Apr 15 '21 16:04 dhritzkiv

...or to fix the implementation to support function evaluation as well is another option, i guess?

japboy avatar Sep 21 '21 05:09 japboy