You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The loader and lazy are only available when using the createBrowserRouter function. I'm trying to use a design system that is built using react-aria and it appears I need to use their RouterProvider to allow links and things to use client side routing.
The RouterProvider I am using accepts a router prop so I am unsure if I can simply replace the react-router implementation with react-aria in this format. The aria only accepts the navigate and useHref props.
<RouterProviderrouter={router}/>
Does anyone have any suggestions or experience in this area? Is it possible to achieve client side routing with the design system elements or will I need to duplicate them?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using react-router 7.1.1 and have routes with loader and lazy props.
The loader and lazy are only available when using the createBrowserRouter function. I'm trying to use a design system that is built using react-aria and it appears I need to use their RouterProvider to allow links and things to use client side routing.
The RouterProvider I am using accepts a router prop so I am unsure if I can simply replace the react-router implementation with react-aria in this format. The aria only accepts the navigate and useHref props.
Does anyone have any suggestions or experience in this area? Is it possible to achieve client side routing with the design system elements or will I need to duplicate them?
Beta Was this translation helpful? Give feedback.
All reactions