main
Branches
main (6.22.3)dev
Versions
6.22.3v4/5.xv3.x
useNavigationType

useNavigationType

Type declaration
declare function useNavigationType(): NavigationType;

type NavigationType = "POP" | "PUSH" | "REPLACE";

This hook returns the current type of navigation or how the user came to the current page; either via a pop, push, or replace action on the history stack.

Docs and examples CC 4.0
Edit