Skip to content

flux-standard-action dependency not necessary #60

@someok

Description

@someok

handleAction use flux-standard-action method isError

import { isError } from 'flux-standard-action';

the method is simple, but it will import some lodash method when compile by webpack.

function isError(action) {
  return action.error === true;
}

I suggest remove the flux dep for descrease the compilse file size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions