---
title: useNavigationType
---

# useNavigationType

[MODES: framework, data, declarative]

## Summary

[Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.useNavigationType.html)

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

```tsx
useNavigationType(): NavigationType
```

