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

feat: add useConnectQuery and useConnectMutation #129

Open
wants to merge 22 commits into
base: next
Choose a base branch
from

Conversation

HassanBahati
Copy link
Collaborator

@HassanBahati HassanBahati commented Nov 25, 2024

This PR adds useConnectQuery and useConnectMutation

Copy link

docs-page bot commented Nov 25, 2024

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.

@HassanBahati HassanBahati marked this pull request as ready for review November 26, 2024 06:39
@HassanBahati HassanBahati requested a review from Ehesp November 26, 2024 06:39
@HassanBahati HassanBahati changed the title feat: add useConnectQuery feat: add useConnectQuery and useConnectMutation Nov 27, 2024
Data = ReturnType<Fn> extends MutationRef<infer D, any> ? D : never,
Variables = Fn extends (
dc: DataConnect,
vars: infer V
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allowing for DataConnect class instance and or just variables where the ref function can infer the variables directly given that the refs accommodate for this. for example this is a snapshot from the generated sdk for movies connector

image

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

Successfully merging this pull request may close these issues.

1 participant