fix(docs): buildLocation expects an object (#4118)

* fix(docs): routing.mdx

* Delete .changeset/pre.json
This commit is contained in:
Can Rau 2024-11-20 10:57:38 -05:00 committed by GitHub
parent ce1546c983
commit 95818914c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -269,7 +269,7 @@ function RootRoute() {
return (
<NextUIProvider
navigate={(to, options) => router.navigate({ to, ...options })}
useHref={(to) => router.buildLocation(to).href}
useHref={(to) => router.buildLocation({ to }).href}
>
{/* You app here... */}
</NextUIProvider>