Skip to content

v2.0.0-beta.14

@prescottprue prescottprue tagged this 29 Oct 10:42
### Description
* 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:

```js
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](http://docs.react-redux-firebase.com/history/v2.0.0/docs/v2-migration-guide.html).
Assets 2
Loading