use-promise
react-firebase-hooks
use-promise | react-firebase-hooks | |
---|---|---|
4 | 11 | |
10 | 3,535 | |
- | 0.3% | |
0.0 | 0.0 | |
4 months ago | 14 days ago | |
TypeScript | TypeScript | |
Mozilla Public License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
use-promise
-
How do I convert Promise<string> object to string for use in href?
Shameless self plug for use-promise. This hook allows you to get the status and result of a Promise so you can use it in your component.
-
Modern API data-fetching methods in React
This is a very nice explainer on how to deal with the Fetch API! If you are looking for something that works even lower level using Promises (including cancellation when components un-mount or dependencies change) check out the library I wrote for the municipality of Amsterdam called use-promise.
-
How to replace useState with useRef and be a winner
Yes, in this case I simplified the code as the fetching logic is not the important piece of this code and would have only made the example more verbose than it needs to be. Normally I would use something like usePromise instead (shameless self promotion).
-
How to store previous value, in useAPI hook and call execute an api call when props change
I made a library just for that! https://github.com/Amsterdam/use-promise
react-firebase-hooks
-
firereact VS react-firebase-hooks - a user suggested alternative
2 projects | 5 Feb 2024
A little bit fatter in terms of size and not actively maintained.
-
Angular Fire equivalent for React?
React-firebase-hooks
- React/Firebase Question: How to avoid rendering HTML aimed for logged-out users when you are already logged-in and hit refresh on the browser?
- Can anyone recommend a helper library for FireStore?
-
React-firestore-hooks to fetch database records from cloud firestore
I'm trying to figure out how to use react-firebase-hooks in my react app so that I can simplify calls on my database.
-
Async await firebase
You also might benefit from leveraging react-firebase-hooks. I’ve been really liking using it. https://github.com/csfrequency/react-firebase-hooks
-
Neat User and Profile React Hooks for Firebase V9
For a good while, I've been relying on a little package called react-firebase-hooks to turn my Firebase realtime document fetching into tidy hooks. However, this library has become a bit sketchy since the release of Firebase v9 a.k.a the Modular edition.
-
React Query Firebase - data fetching and mutation hooks for Firebase.
For example, this issue, this issue, is already handled out of the box - and a lot of the other ones are already solved since React Query does all of the hard work.
-
Using firebase for Authentication and RTK
If you want, you can use useFirebaseAuth which takes care of onAuthStateChanged for you in a clean and simple way. That library also has useful hooks for working with Firestore and RTB.
-
Having Trouble Installing Reactfirebasehooks
I believe this should be fixed soon, as chrisbianca says on Github https://github.com/CSFrequency/react-firebase-hooks/issues/104#issuecomment-778586537
What are some alternatives?
reactfire - Hooks, Context Providers, and Components that make it easy to interact with Firebase.
react-query-firebase - React Query hooks for managing asynchronous operations with Firebase. Supports Authentication, Analytics, Firestore & Realtime Database.
formik - Build forms in React, without the tears 😭 [Moved to: https://github.com/formium/formik]
next-firebase-ssr - An Next.js example repo for building authenticated pages with Firebase Authentication, cookies, and getServerSideProps
redaxios - The Axios API, as an 800 byte Fetch wrapper.
react-ga - React Google Analytics Module
fetch - A Fetch API wrapper
react-recaptcha - A react.js reCAPTCHA for Google
react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native)
react-query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]
nextjs-graphql-forum-app - NextJS, Firebase Graphql and Tailwindcss forum app
react-firebase - 🔥Declarative React bindings for Firebase Auth & Realtime Database.