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
@toddself ahh, right yeah this should be because the default path is set by default to '' which is then mapped to '/' - think we might need to change the default path to be false or something
To be more specific for people who experience this problem:
You can bypass that behavior by setting a custom default path.
e.g.
constwayfarer=require('wayfarer')constr=wayfarer('/404')// set the custom default path in herer.on('/',()=>console.log('route hit'))r.emit('/')// logs 'route hit'r.emit('/foobar')// will throw
Expected that second one to not trigger the route.
The text was updated successfully, but these errors were encountered: