Skip to content

Conversation

@HassanBahati
Copy link
Member

This PR adds useNamedQuery hook

@docs-page
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
@HassanBahati
Copy link
Member Author

this hook has been re-implemented via #146

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