Firebase Hooksv0.2.0

Introduction

Typed React hooks for Firebase — one hook per flow, with its state, errors, and callbacks handled.

Each hook runs one flow end to end. It holds its own loading, error, and success state, and sets up the browser pieces and callbacks the flow needs.

Every action returns a result you can branch on — { success: true, … } when it works, { success: false, error, code, cause } when it doesn't. Firebase's own response is on both paths, unmodified.

Zero dependencies. firebase and react are peers.

Why this package

Services

Each service is its own import, so an app only carries what it uses.

ServiceImportStatus
Core@timonwa/firebase-hooksAvailable
Auth@timonwa/firebase-hooks/authAvailable
Firestore@timonwa/firebase-hooks/firestoreComing soon
Storage@timonwa/firebase-hooks/storageComing soon
Cloud Functions@timonwa/firebase-hooks/functionsComing soon

The most-used services ship first; more may follow once these land.

On this page