useAppLinks

tcmts.react.useAppLinks · #fjrwef5l · term · runs in the browser

uses tcmts.react.router, which uses tcmts.react.createRouter, which uses IntersectionObserver

Follow the page's links to the app (<a href> anywhere on it) without reloading the page. Links with a modifier key, a target, download or rel="external" are left to the browser, and so is a path isApp says isn't the app's.

import { router } from "#codebase/tcmts/react";

export const useAppLinks = (isApp?: (path: string) => boolean): void => router.useAppLinks(isApp)

uses

used by