import { navigating } from "$app/state"; // the old page stays mounted while the destination loads, pulse the clicked row export function navigatingTo(href: string): boolean { const to = navigating.to?.url; if (!to) return false; return to.pathname === new URL(href, to.origin).pathname; }