You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Query {...options} skip={true}>{renderProps}</Query>
// vs
useQuery<A, B>(Query, { skip: true } as any); // not work cause apolloClient dosn't have skip option
The text was updated successfully, but these errors were encountered:
I published a version 0.1.6 with the typescript fix.
how can i skip query?
It's currently not implemented. You can conditionally render a component using the useQuery hook. I can add the skip option, but what behavior of the hook should be if it's true? Return an object with data equal to {}?
current workaround
what I expected
index.d.ts
cause in
index.js
, useQuery calls watchQuery so restOptions should have WatchQueryOptions interface tooPS
how can i skip query?
The text was updated successfully, but these errors were encountered: