Skip to content
New issue

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

dva注册model #2484

Open
guoliuyong opened this issue Feb 24, 2022 · 3 comments
Open

dva注册model #2484

guoliuyong opened this issue Feb 24, 2022 · 3 comments
Labels

Comments

@guoliuyong
Copy link

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, select app, choose dva, then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior:
1.
2.

Expected behavior
1.
2.

Context

  • Dva Version:
  • Node Version:
  • Platform:
@guoliuyong
Copy link
Author

dva版本:2.4.1
react版本:17.0.39
app.model({
namespace: 'login',
reducers: {
add(state, { payload: todo }) {
return state.concat(todo);
},
},
})
index文件注册model
报错信息
image

@guoliuyong
Copy link
Author

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, select app, choose dva, then upload to your GitHub

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

  • Dva Version:
  • Node Version:
  • Platform:

@guoliuyong guoliuyong reopened this Feb 24, 2022
@stale
Copy link

stale bot commented Apr 27, 2022

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.

@stale stale bot added the wontfix label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant