mongodb-js / connect-backbone-to-react

Connect Backbone Models and Collections to React.
https://www.npmjs.com/package/connect-backbone-to-react
Apache License 2.0
27 stars 5 forks source link

State not updated when props passed to connected component change #6

Closed spencer-brown closed 7 years ago

spencer-brown commented 7 years ago

Let's say component A is a connected component that's been wrapped by connect-backbone-to-react and component B is a component that renders component A. If component B's state changes in a way that changes the models passed down to connected component A from component B, those changes should propagate down to the underlying wrapped component.

Currently, this does not happen - the HOC's state is only set/updated when it's initialized and when the initially passed models/collections fire an event.