Skip to content

v2.0.0-beta.14

Pre-release
Pre-release
Compare
Choose a tag to compare
@prescottprue prescottprue released this 29 Oct 10:45
2ec536c
  • fix(typings): Updated type definitions - #311
  • fix(populate): dispatch for errors during profile population - #312
  • feat(firebaseConnect): store is passed as second argument of firebaseConnect - #278
  • feat(firestoreConnect): store is passed as second argument of firestoreConnect
  • fix(query): dispatchRemoveAction is now false by default - prevents multiple state updates when calling remove if listener associated is attached

Potentially Breaking

  • store being passed as second argument of firebaseConnect (and firestoreConnect), which means any components using that second argument will break (most commonly used for getting uid). To access uid or other info from redux state, use store.getState() like so:
firebaseConnect(
  (props, store) => {
    const { firebase: { auth } } = store.getState()
    // be careful, listeners are not re-attached when auth state changes unless props change
    return [{ path: `todos/${auth.uid || ''}` }]
  }
)

More details are included in the migration guide.