HandleBack
Function: handleBack()
[object Object]
Defined in: app/components/UI/PageHeader/PageHeader.handlers.tsx:14
Orchestrates back-navigation logic based on provided overrides or fallback routes.
This utility follows a priority order:
- If a custom
onBackfunction is provided, it executes that logic exclusively. - Otherwise, if a
backTostring is provided, it uses the router'snavigatefunction to redirect.
Parameters
onBack
(() => void) | undefined
An optional custom callback to execute instead of navigation.
backTo?
[object Object]
An optional route path to navigate to if no custom callback is provided.
navigate
[object Object]
The react-router navigation function instance.
Returns
[object Object]