prosciutto::bacon:基于Functor的Redux副作用

时间:2021-05-03 20:23:40
【文件属性】:
文件名称:prosciutto::bacon:基于Functor的Redux副作用
文件大小:52KB
文件格式:ZIP
更新时间:2021-05-03 20:23:40
redux middleware promise epics side-effects :bacon: 火腿 基于的Redux副作用 替代rxjs和redux-observable或 安装 yarn add prosciutto 用法示例 聆听任何redux动作,执行副作用,调度新的redux动作 // epics.js import { searchResponse , seachError , clearSidebar } from './reducer' // Simple example const simpleEpic = is => is ( 'SUBMIT_SEARCH' ) . map ( ( { payload , store , dispatch } ) => fetch ( payload ) . then ( res => res . json ( ) ) . then ( json => dispatch ( searchResponse (
【文件预览】:
prosciutto-master
----.babelrc(38B)
----package.json(758B)
----LICENSE(11KB)
----src()
--------index.js(1KB)
----.npmignore(16B)
----.gitignore(35B)
----README.md(2KB)
----yarn.lock(120KB)

网友评论