Skip to content

Commit

Permalink
fix(docs): buildLocation expects an object (#4118)
Browse files Browse the repository at this point in the history
* fix(docs): routing.mdx

* Delete .changeset/pre.json
  • Loading branch information
CanRau authored Nov 20, 2024
1 parent ce1546c commit 9581891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/docs/content/docs/guide/routing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 9581891

Please sign in to comment.