backbone-react-component v0.8.0 Release Notes

Release Date: 2015-03-16 // about 9 years ago
  • Breaking changes

    • React v0.13
    • Internally @setState will be always used instead of @setProps, so you're model/collections data will be available under @state (#36, #54)
    • ๐Ÿš€ @getModel and @getCollection no longer crawls the dirty _owner reference (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.model instead of directly into @state
    • ๐Ÿ†• New @overrideModel and @overrideCollection methods to programatically override a model/collection in a component. This is useful for use cases such as react-router (#60)

    Minor

    • Listen to Backbone.Model#invalid event (#53)
    • @$ now fallbacks to DOM's querySelector if jQuery is not present

    ๐Ÿ› Bug fixes

    • ๐Ÿ‘ Allow to change collection/model references (#29) (by filtering @componentWillReceiveProps)