umi
umi copied to clipboard
[Bug] useModel 内出现 useSearchParams 运行异常
What happens?
在 model 定义里如果出现 useSearchParams 会导致 useModel 它时第二个参数的 model 短暂为空
Mini Showcase Repository(REQUIRED)
Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库
How To Reproduce
- model hook 中使用 useSearchParams
- useModel 该 model 提供第二个参数 pick
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2.
Context
- Umi Version:
- 4
- Node Version:
- 16.6
- Platform:
- macOS