Comments (2)
I think you're using useNavigate hook outside of the router.
from router.
Yep, you need to use it inside the Router component
from router.
Related Issues (20)
- Memory leak in test from 1.18.3 HOT 10
- Link component doesn't update URL with search params. HOT 5
- Issue with React Context in root route HOT 3
- ToOptions doesnt't satisfy <Link> props. HOT 11
- useNavigate ignores basepath after 1.18.4
- redirect no type safety HOT 9
- File based routing lazy-loading: when new build is pushed, lazy loaded scripts fail to load and causes an error HOT 6
- Can't update search using `Link` component without providing `to` prop HOT 5
- Layout Index Routes Don't Have Proper Id HOT 3
- Docs: incorrect useMatch argument description HOT 5
- Lazy routes are not generated on 1.19.3 version of router-vite-plugin HOT 2
- Issue with nested params after updating to the latest release when prefixed with `_` HOT 10
- Redirect in beforeLoad not working HOT 12
- Passing a function to Link's children property causing a type error
- Unexpected trailing slash causes mismatch between exact link active option and url HOT 4
- Can't use errorComponent in createLazyFileRoute HOT 7
- Vite Plugin Route file generation does not work while Vite is running on Windows machines HOT 8
- Dynamic route matching component error HOT 1
- Router does not trigger `loader` or `beforeLoad` when navigating to same url HOT 5
- Router's internal `state.location` is not updated when making manual changes to the url HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from router.