-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed
Labels
Description
Reproduction
<NavLink href={null} />
<NavLink href={undefined} />
System Info
-Used Package Manager
pnpm
Expected Behavior
It should be possible to omit to or set it to undefined same as for a href html element to omit url.
This is useful to disable navigation while still showing element, for example for pagination.
Actual Behavior
Omitting to resolves to current path <a href='my-current-path'>