Jump to a different location as though a link has been clicked
const onClick = useCallback(() => {
detour([ 'home' ]);
}, [ detour ]);
parts
-<string[]>
The new path partsquery
-<object>
The new set of query variablespush
-<boolean>
Whether the operation should result in a call topushState
or areplaceState
Calling this function will trigger detour traps.