useNavigating

tcmts.atproto.lib.react.useNavigating · #5cwtoqfc · function · runs in the browser

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

Whether a navigation (navigate, back or forward) is still rendering: the next page is on its way, and the last one is still on screen.

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

export const useNavigating = (): boolean => router.useNavigating()

uses