@polargold/pg-frontend-vue
    Preparing search index...

    Function useRouterGo

    • Wraps router.go() with error handling, since router.go() itself can throw (e.g. no history entry to go to).

      Generalizes three divergent copies found in the audit: luv-autoq-frontend's (silently swallows the error), and ama-deep's/data-sheet-portal's (identical - log + redirect to a hardcoded error route). See UseRouterGoOptions.onError to opt into logging/redirecting yourself.

      Parameters

      Returns { routerGo: (to: number) => Promise<void> }