Skip to content

useRouteProps ​

Overview ​

Returns a computed ref containing the resolved props for the first matched route. Supports both object and function prop definitions.

Signature ​

useRouteProps()

Returns ​

ComputedRef

A computed ref of the resolved route props.

Source ​

client/lib/use/useRouteProps.js:15