Replies: 2 comments 2 replies
-
It turns out |
Beta Was this translation helpful? Give feedback.
0 replies
-
如有问题,需要给一个最小复现仓库。 你的这种 model 是 dva 的 model 吧: export default {
namespace: 'user',
state: {},
effects: {},
reducers: {}
} 他需要 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After upgrading umi 3 to umi 4, I begin to use
useModel
. My previous umi 3 model (many models insrc/models
directory) looks like:I didn't change anything but only add
model: {}
toconfig.ts
.Now when I call
useModel('user')
, it always return undefined. Any clue? Do I need to add some Provider anywhere?Beta Was this translation helpful? Give feedback.
All reactions