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
I tried to use the route props version of the navigate function as suggested in the documentation and it crashes when used with a -1 value (or any number).
Issue
I tried to use the route props version of the
navigate
function as suggested in the documentation and it crashes when used with a-1
value (or any number).https://reach.tech/router/api/navigate
Code Sandbox
Changed react and @reach/router dependencies, not sure what default 0.0.0-rc2 is, but it was not supporting the
useNavigate
for comparison.The "Home" route is using the
useNavigate
hook to get thenavigate
function, which works well.The "Dashboard" route is using the
navigate
from recieved props and cause a crash in theresolve
as it expects a string.https://codesandbox.io/s/reach-router-starter-v1-forked-8m4e9?file=/src/index.js
The text was updated successfully, but these errors were encountered: