umijs / dumi

📖 Static Site Generator for component library development
https://d.umijs.org
MIT License
3.61k stars 1.18k forks source link

fix: fallback useRouteMeta logic and handle errors caused by custom routeMeta #2137

Closed Jinbao1001 closed 5 months ago

Jinbao1001 commented 5 months ago

🤔 这个变动的性质是?/ What is the nature of this change?

🔗 相关 Issue / Related Issue

💡 需求背景和解决方案 / Background or solution

2134 引入问题

  1. 所有路由都返回 routeMeta 会导致路由表错乱, 首页 redirect 到404 页面, 回滚变更, 不触发 useRouteMeta 的 merge 逻辑.
  2. 修复 ayncCache 遇到用户插件自定义 meta 导致的异常错误.

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English fallback useRouteMeta logic and handle errors caused by custom routeMeta
🇨🇳 Chinese 回滚 useRouteMeta 变更 & 解决用户自定义 meta导致的异常
vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dumi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 5, 2024 9:43am