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

Add useNamedQuery hook #107

Draft
wants to merge 4 commits into
base: next
Choose a base branch
from

Conversation

HassanBahati
Copy link
Collaborator

This PR adds useNamedQuery hook

Copy link

docs-page bot commented Sep 26, 2024

To view this pull requests documentation preview, visit the following URL:

react-query-firebase.invertase.dev/~107

Documentation is deployed and generated using docs.page.

};
};

export function useNamedQuery<TData = QuerySnapshot<DocumentData>>(
Copy link
Member

Choose a reason for hiding this comment

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

I don't this hook is right... it should return a Query (or null) based on https://firebase.google.com/docs/reference/js/firestore_.md#namedquery_6438876

useNamedQuery(firestore, 'foo', { ... });

@HassanBahati HassanBahati marked this pull request as draft September 29, 2024 14:20
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.

2 participants