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

Support for RefetchQueriesFunction #142

Open
maarekj opened this issue Feb 8, 2022 · 1 comment
Open

Support for RefetchQueriesFunction #142

maarekj opened this issue Feb 8, 2022 · 1 comment

Comments

@maarekj
Copy link
Contributor

maarekj commented Feb 8, 2022

Today in mutation, in refetchQueries, there is only support for Array<string | PureQueryOptions>, there is not support for RefetchQueriesFunction

// refetchQueries?: Array<string | PureQueryOptions> | RefetchQueriesFunction;

@jeddeloh
Copy link
Owner

jeddeloh commented Feb 8, 2022

In the latest Apollo client it's actually changed completely: https://github.com/apollographql/apollo-client/blob/a4b03cdb69ffb5164f0db2e34f842307ab95dba4/src/core/watchQueryOptions.ts#L229

I think the actual fix should probably be to switch to (result: FetchResult<TData>) => InternalRefetchQueriesInclude

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