Skip to content

clearErrorsFor and more stable `failed` action

Latest
Compare
Choose a tag to compare
@anru anru released this 24 Feb 17:39
· 31 commits to master since this release

Two things in this release:

  1. New action clearErrorsFor was introduced:

    import { clearErrorsFor } from '@foxcomm/wings';
    
    class Foo extends Component {
    componentDidMount() {
       this.props.fetchProducts();
       this.props.fetchTags();
    }
    
    componentWillUnmount() {
      this.props.dispatch(clearErrorsFor('fetchProducts', 'fetchTags'));
    }
    }
    
    export default connect()(Foo);
  2. Fixed failed action, now it doesn't depend on payload reducer for your async action.