We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
看了一下redux-alita的实现, 稍微写一下自己的理解, 有错误请指正! @SiroSong @hypo1986 使用React-Redux针对此项目进行了封装,
提供4个功能: {AlitaProvider, connectAlita, setAlitaState, setConfig}
Object.funcName: 请求接口函数名称 Object.stateName: category Object.data: data Object.params: 请求接口的参数 之后 dispatch 执行一个 Action, 表示 state 要发生变化
传入所有的接口, 存入funcs, 以便使用funcs[funcName](params)执行接口函数
funcs[funcName](params)
Originally posted by @chenkangyang in yezihaohao/react-admin#12 (comment)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Redux-alita使用说明
提供4个功能:
{AlitaProvider, connectAlita, setAlitaState, setConfig}
AlitaProvider
connectAlita(state)
setAlitaState(Object)
setConfig (apis)
传入所有的接口, 存入funcs, 以便使用
funcs[funcName](params)
执行接口函数Originally posted by @chenkangyang in yezihaohao/react-admin#12 (comment)
The text was updated successfully, but these errors were encountered: