Releases: magalhas/backbone-react-component
Releases · magalhas/backbone-react-component
v0.10.0
v0.9.0
v0.8.1
v0.8.0
Breaking changes
- React v0.13
- Internally
@setStatewill be always used instead of@setProps, so you're model/collections data will be available under@state(#36, #54) @getModeland@getCollectionno longer crawls the dirty_ownerreference (which will be removed on incoming React release), instead they are able to grab the model and collection instances through@context(new React feature)- When passing a single model, the JSON representation will be available under
@state.modelinstead of directly into@state - New
@overrideModeland@overrideCollectionmethods to programatically override a model/collection in a component. This is useful for use cases such asreact-router(#60)
Minor
- Listen to
Backbone.Model#invalidevent (#53) @$now fallbacks to DOM'squerySelectorifjQueryis not present
Bug fixes
- Allow to change collection/model references (#29) (by filtering
@componentWillReceiveProps)