主要內容
分支
主要內容 (6.23.1)開發版
版本
6.23.1v4/5.xv3.x
useNavigationType

useNavigationType

型別宣告
declare function useNavigationType(): NavigationType;

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

此 hook 傳回當前導覽類型或使用者如何前往當前頁面;透過歷史記錄堆疊中之 pop、push 或 replace 動作。