Table of Contents

createWithFirebase

Function that creates a Higher Order Component that
which provides firebase and dispatch as a props 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
Firebase state (state.firebase) (optional, default 'store')

Examples

Basic

// props.firebase set on App component as firebase object with helpersimport{ createWithFirebase }from'react-redux-firebase'// create withFirebase that uses another redux storeconst withFirebase =createWithFirebase('anotherStore')// use the withFirebase to wrap a componentexportdefaultwithFirebase(SomeComponent)

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

withFirebase

Extends React.Component

Higher Order Component that provides firebase and
dispatch as a props to React Components. Firebase is gathered from
store.firebase, which is attached to store by the store enhancer
(reactReduxFirebase) during setup.
NOTE: This version of the Firebase library has extra methods, config,
and functionality which give it it's capabilities such as dispatching
actions.