Skip to content

createReducer 的第一个参数应当改为 actionFilter #2

@jinzhubaofu

Description

@jinzhubaofu
let reducer = createReducer(
  actionFilter,
  initialValue,
  customReducers
);

其中, actionFilter 的类型可以为 string 或者 function(action: Object): bool

  1. string: 当且仅当 string 与 action.payload.model 一致时,reducer 才会被激活
  2. function: 当且仅当它的返回结果为 true 时, reducer 才会被激活

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