Skip to main content

useNavigationType

还没翻译译自英文(reactrouter.com)本页 10 段都还没译

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")