dumi icon indicating copy to clipboard operation
dumi copied to clipboard

bug: useRouteMeta 意外返回了 Proxy 对象?且在首页这种没有 texts 的场景下取值 texts 会报 `Uncaught Promise {<fulfilled>: {…}}`

Open xiaochena opened this issue 9 months ago • 0 comments

Version

2.3.4

OS Version

window 11

Node.js Version

18.0.0

Browser Version

Chrome 124.0.6367.208

Link to minimal reproduction

https://github.com/arvinxx/dumi-theme-antd-style

Steps to reproduce

直接运行、切换菜单时的白屏就是因为 useRouteMeta 意外返回了一个 Proxy 对象、且在取值时报错

What is expected?

返回 Proxy 对象 是否是正常的行为?取值时不报错

What is actually happening?

useRouteMeta 意外返回了一个 Proxy 对象 且在取值时报错

Any additional comments? (optional)

No response

xiaochena avatar May 22 '24 17:05 xiaochena