useMatches

useMatches

摘要

参考文档 ↗

返回当前活跃的路由匹配项,可用于访问父/子路由的 loaderData 或路由的 "handle" 属性

签名

useMatches(): undefined
文档和示例 CC 4.0