@vowel.to/client / index / ReactRouterNavigationAdapterOptions
Interface: ReactRouterNavigationAdapterOptions
Defined in: lib/vowel/adapters/navigation/react-router-navigation-adapter.ts:49
Options for ReactRouterNavigationAdapter
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
navigate | ReactRouterNavigateFunction | Navigate function from useNavigate() hook | lib/vowel/adapters/navigation/react-router-navigation-adapter.ts:53 |
location | ReactRouterLocation | Location object from useLocation() hook | lib/vowel/adapters/navigation/react-router-navigation-adapter.ts:58 |
routes? | VowelRoute[] | Optional: Array of routes to provide to the AI Since React Router doesn't expose route configuration at runtime, you should provide this manually | lib/vowel/adapters/navigation/react-router-navigation-adapter.ts:65 |
useReplace? | boolean | Optional: Whether to use replace instead of push for navigation Default: false | lib/vowel/adapters/navigation/react-router-navigation-adapter.ts:71 |