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

route配置wrappers后useOutletContext就失灵了 #12829

Closed
zhouwenqi opened this issue Dec 8, 2024 · 1 comment
Closed

route配置wrappers后useOutletContext就失灵了 #12829

zhouwenqi opened this issue Dec 8, 2024 · 1 comment

Comments

@zhouwenqi
Copy link

zhouwenqi commented Dec 8, 2024

route配置wrappers后useOutletContext就失灵了,钩不到数据了

自定义布局中使用,在子路由中用useOutletContext钩数据,本来一直可以正常工作,但是在route中配置了wrappers:["@/wrappers/auth"]后,钩子就失效报错了,但没有用useOutletContex的页面不影响
TypeError: Cannot read properties of undefined (reading 'title')

Context

  • Umi Version: 4.3.6
  • Node Version: 20.18.0
  • Platform: windows11(任何浏览器)
Copy link

github-actions bot commented Dec 8, 2024

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant