Skip to content
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

typescript does not allow throwOnError option in prefetchQuery options #466

Closed
killerchip opened this issue May 7, 2020 · 1 comment
Closed

Comments

@killerchip
Copy link
Contributor

Use a typescript project.

The following code will have typescript complain about 'throwOnError' option.

queryCache.prefetchQuery({
        queryKey: [queryKey],
        variables: [args],
        queryFn: myAsyncFunc,
        config: {
          throwOnError: true,
        }
      })
@tannerlinsley
Copy link
Collaborator

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants