Open guoliuyong opened 2 years ago
dva版本:2.4.1
react版本:17.0.39
app.model({
namespace: 'login',
reducers: {
add(state, { payload: todo }) {
return state.concat(todo);
},
},
})
index文件注册model
报错信息
What happens?
A clear and concise description of what the bug is.
Mini Showcase Repository(REQUIRED)
Provide a mini GitHub repository which can reproduce the issue. Use
yarn create umi
, selectapp
, choosedva
, then upload to your GitHubHow To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
- Dva Version:
- Node Version:
- Platform:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What happens?
A clear and concise description of what the bug is.
Mini Showcase Repository(REQUIRED)
How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context