Skip to content

Commit

Permalink
fix tanstack router useHref example (#7148)
Browse files Browse the repository at this point in the history
  • Loading branch information
kveperedo authored Oct 10, 2024
1 parent 8a7cb15 commit e9aa00a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/dev/docs/pages/react-aria/routing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function RootRoute() {
return (
<RouterProvider
navigate={(to, options) => router.navigate({to, ...options})}
useHref={to => router.buildLocation(to).href}>
useHref={to => router.buildLocation({to}).href}>
{/* ...*/}
</RouterProvider>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/docs/pages/react-spectrum/routing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ function RootRoute() {
theme={defaultTheme}
router={{
navigate: (to, options) => router.navigate({to, ...options}),
useHref: to => router.buildLocation(to).href
useHref: to => router.buildLocation({to}).href
}}>
{/* ...*/}
</Provider>
Expand Down

1 comment on commit e9aa00a

@rspbot
Copy link

@rspbot rspbot commented on e9aa00a Oct 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.