@monkhai/firequery
v0.0.1
Published
This is a simple library to query data from firestore using tanstack-query. It is build so that you can extend and customize it in whatever way you need.
Downloads
2
Readme
FireQuery
This is a simple library to query data from firestore using tanstack-query. It is build so that you can extend and customize it in whatever way you need.
Installation
Make sure you have firestore and @tanstack/react-query installed in your project.
npm install firebase @tanstack/react-query
yarn add firebase @tanstack/react-query
Then install firequery
npm install @monkhai/firequery
yarn add @monkhai/firequery
Basic Usage
const postsCollection = new CustomCollection('posts', 'posts', firestore, queryClient)
const { data: posts } = postsCollection.useGetDocuments()