v2.0.0-beta.14
Pre-release
Pre-release
- fix(typings): Updated type definitions - #311
- fix(populate): dispatch for errors during profile population - #312
- feat(firebaseConnect):
store
is passed as second argument offirebaseConnect
- #278 - feat(firestoreConnect):
store
is passed as second argument offirestoreConnect
- fix(query):
dispatchRemoveAction
is nowfalse
by default - prevents multiple state updates when callingremove
if listener associated is attached
Potentially Breaking
store
being passed as second argument offirebaseConnect
(andfirestoreConnect
), which means any components using that second argument will break (most commonly used for gettinguid
). To accessuid
or other info from redux state, usestore.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.