resourcerer v0.7.0 Release Notes

Release Date: 2020-05-01 // almost 4 years ago
    • ➕ Adds support for Schmackbone 1.5, which uses Promise interfaces for its requests

    before:

    onClickSaveButton() {this.setState({isSaving: true});// any other mounted component in the application listening to this model or its collection// will get re-rendered with the updated name as soon as this is calledthis.props.userTodoModel.save({name: 'Giving This Todo A New Name}, { success: () =\> notify('Todo save succeeded!'),error: () =\> notify('Todo save failed :/'),complete: () =\> this.setState({isSaving: false})});
    

    after:

    onClickSaveButton() {this.setState({isSaving: true});// any other mounted component in the application listening to this model or its collection// will get re-rendered with the updated name as soon as this is calledthis.props.userTodoModel.save({name: 'Giving This Todo A New Name}).then(() =\> notify('Todo save succeeded!')).catch(() =\> notify('Todo save failed :/')).then(() =\> this.setState({isSaving: false}));}