useGo hook provides a flexible way to navigate programmatically. It supports both string-based URLs and resource-based navigation.
Usage
Return Value
Returns a function that accepts a navigation configuration object.Parameters
Resource Object
When passing a resource object toto, use the following structure:
Examples
Navigate to a Path
Navigate to a Resource
Get Path Without Navigating
With Query Parameters
With Hash Fragment
Keep Existing Parameters
Replace History Entry
Navigate to Different Actions
Type Definitions
See Also
- useNavigation - Higher-level navigation methods
- useParse - Parse current route information