Skip to main content

useNavigationType

useNavigationType

Framework Data Declarative

Summary

Reference Documentation ↗

Returns the current Navigation action which describes how the router came to the current Location, either by a pop, push, or replace on the History stack.

Signature

function useNavigationType(): NavigationType

Returns

The current NavigationType ("POP", "PUSH", or "REPLACE")

Translation © 2026 fanyi.dev · Original © 2026 React Training LLC, Remix Software Inc., Shopify Inc. (MIT)