You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have added onClick prop to link to prevent navigate behaviour. It's not possible. In some cases we need to prevent it's navigate behaviour and add middleware to navigate route. We can use normal html link with useNavigate hook but in this case prefetch functionality of link is not working.
Expected behaviour
When we add onClick or other listeners as a prop, it should possible to prevent it's behaviours.
Describe the bug
I have added onClick prop to link to prevent navigate behaviour. It's not possible. In some cases we need to prevent it's navigate behaviour and add middleware to navigate route. We can use normal html link with useNavigate hook but in this case prefetch functionality of link is not working.
Expected behaviour
When we add onClick or other listeners as a prop, it should possible to prevent it's behaviours.
Code
The text was updated successfully, but these errors were encountered: