react-backbone v0.25.0 Release Notes

Release Date: 2015-03-30 // about 7 years ago
    • ➕ add parameter awareness to the XHRAware mixin - aa1ba95

    You can provide an optional argument to the mixin allowing you to specificy individual XHR events and the associated state attribute. The key for each entry is the XHR event type and the value is the state attribute to indicate the XHR activity. For example:

        React.createClass({
          mixins: ['collectionXHRAware({read: "fetching"})'],
    

    Will only listen for read events (fetch) and will use state.fetching instead of the standard state.loading.

    For more details on all XHR events look here

    Commits