Skip to content

Commit 9581891

Browse files
authored
fix(docs): buildLocation expects an object (#4118)
* fix(docs): routing.mdx * Delete .changeset/pre.json
1 parent ce1546c commit 9581891

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/docs/content/docs/guide/routing.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ function RootRoute() {
269269
return (
270270
<NextUIProvider
271271
navigate={(to, options) => router.navigate({ to, ...options })}
272-
useHref={(to) => router.buildLocation(to).href}
272+
useHref={(to) => router.buildLocation({ to }).href}
273273
>
274274
{/* You app here... */}
275275
</NextUIProvider>

0 commit comments

Comments
 (0)