Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

State Based Query Example

This example shows using data from redux state to be used in queries. A good example of this is querying based on the current user's UID.

Auth Wrapping

By wrapping component in connect function, you bring auth from redux state into a prop name "auth":

const authWrappedComponent = connect(
  ({ firebase }) => ({
    auth: pathToJS(firebase, 'auth')
  })
)(App)