dev
Branches
main (6.4.1)dev
Versions
6.4.1v4/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