We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 609739b commit 77b3442Copy full SHA for 77b3442
packages/dev/docs/pages/react-aria/routing.mdx
@@ -278,7 +278,7 @@ import {RouterProvider} from 'react-aria-components';
278
279
declare module 'react-aria-components' {
280
interface RouterConfig {
281
- href: ToOptions['to'];
+ href: ToOptions;
282
routerOptions: Omit<NavigateOptions, keyof ToOptions>;
283
}
284
@@ -287,8 +287,8 @@ function RootRoute() {
287
let router = useRouter();
288
return (
289
<RouterProvider
290
- navigate={(to, options) => router.navigate({to, ...options})}
291
- useHref={to => router.buildLocation({to}).href}>
+ navigate={(href, opts) => router.navigate({...href, ...options})}
+ useHref={href => router.buildLocation(href).href}>
292
{/* ...*/}
293
</RouterProvider>
294
);
0 commit comments