Table of Contents

createWithFirestore

Function that creates a Higher Order Component that
which provides firebase, firestore, and dispatch to React Components.

WARNING!! This is an advanced feature, and should only be used when
needing to access a firebase instance created under a different store key.

Parameters

storeKeyString Name of redux store which contains
Firestore state (state.firestore) (optional, default 'store')

Examples

Basic

import{ createWithFirestore }from'react-redux-firebase'// create withFirestore that uses another redux storeconst withFirestore =createWithFirestore('anotherStore')// use the withFirestore to wrap a componentexportdefaultwithFirestore(SomeComponent)

Returns Function Higher Order Component which accepts an array of
watchers config and wraps a React Component

withFirestore

Extends React.Component

Higher Order Component that attaches firestore, firebase
and dispatch as props to React Components. Firebase instance is gathered
from store.firestore, which is attached to store by the store enhancer
(reduxFirestore) during setup of
redux-firestore