Normal Action Api

onSuccess

模型中监听其他模型被执行时的回调,与effects搭配使用

  1. protected effects(): Effects<Data> {
  2. return [
  3. xxxModel.someAction.onSuccess((state, action) => {
  4. //
  5. }),
  6. ];
  7. }

getSuccessType

获取Action的type字符串