Table of Contents

createFirebaseConnect

Function that creates a Higher Order Component that
automatically listens/unListens to provided firebase paths using
React's Lifecycle hooks.
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

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