You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

firebase-easy-hooks

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-easy-hooks

# 1. Install ```bash yarn add firebase-easy-hooks ```

latest
Source
npmnpm
Version
1.0.22
Version published
Maintainers
1
Created
Source

Firebase hookm for react

1. Install

yarn add firebase-easy-hooks

2. Using

Auth

import { useAuth } from 'firebase-easy-hooks'
const { user, loading, claims } = useAuth()

Render collection

import { useCollectionData } from 'firebase-easy-hooks'
const { data, loading, error, fetch_more, has_more, empty, add } = useCollectionData('users/random_user_id/payments')

// data: List items array
// loading: boolean
// fetch_more: Load more data
// has_more: boolean 
// empty == true if no items in list
// add : Add new document to collections

Render document

import { useDocumentData } from 'firebase-easy-hooks'
const { data, loading, error  } = useDocumentData('users/random_user_id/payments/paymentX')

// data: List items array
// loading: boolean

FAQs

Package last updated on 25 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts