how does cb && 'function' === typeof cb && cb(data) work in the Action(React-redux) with redux-thunk?

后端 未结 0 1116
鱼传尺愫
鱼传尺愫 2021-01-23 15:50

I create a mock promise as delay()to access redux-thunk.

In the action part, I could not understand cb && \'function\' === typeof cb && cb(data)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题