Make sure your app is wrapped in a <Router />
Hey folks, probably something silly but why can't I access
useNavigator
in my RouteGuard?
Attaching my RouteGuard and App.tsx 🙏4 Replies
what version of the solid router is this?
"@solidjs/router": "^0.10.10"
Is there some sort of breaking change? I know there's no <Routes />
in this.@Benny Routers should only have <Route/> elements as their children. To make guard routes you’ll need to add a path-less route containing the layout component
That was it, thanks @Brendonovich ❤️