KokoNeot
Fetching resources only when logged in
Same here
this was my attempt at route data function but it doesnt work as intended because initially logged is === to null, the AuthContext makes an api call to check if user is logged or not and then its set to true or false but the data function doesnt rerun
2 replies
useParams not working
I expect to have params in the SidePanel component. I'm aware that the SidePanel component is part of DashboardLayout and that is rendered on route /dashboard but it has an outlet component which allows me to show stuff on different routes. What I think is happening here is that the SidePanel component (along with DashboardLayout) thinks that they are only on /dashboard route even though they are at /dashboard/:guildID(/leaderboard)
19 replies