-
Notifications
You must be signed in to change notification settings - Fork 70
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
feat: add useConnectQuery and useConnectMutation #129
Conversation
To view this pull requests documentation preview, visit the following URL: docs.page/invertase/tanstack-query-firebase~129 Documentation is deployed and generated using docs.page. |
Data = ReturnType<Fn> extends MutationRef<infer D, any> ? D : never, | ||
Variables = Fn extends ( | ||
dc: DataConnect, | ||
vars: infer V |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…o reslove locally
TError = FirebaseError, | ||
Variables = unknown | ||
> = Omit<UseMutationOptions<TData, TError, Variables>, "mutationFn"> & { | ||
invalidate?: QueryRef<unknown, unknown>[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll bring this one up, but I'm thinking we should try to support both a QueryRef & the inferred function function where we can just take the name.
This PR adds
useConnectQuery
anduseConnectMutation