flat-fuchsia
flat-fuchsia9mo ago

hello here. might not be worth a github issues; using <Authenticated> or even the hook itself within

hello here. might not be worth a github issues; using <Authenticated> or even the hook itself within another Authenticated (via a router Outlet) causes the whole application (even the browser) to hang.
<Route
element={
<Authenticated key="private">
<ThemedLayoutV2>
<Outlet />
</ThemedLayoutV2>
</Authenticated>
}
>
<Route index element={<HomePage />} />
<Route path="*" element={<ResourceRoutes />} />
</Route>
<Route
element={
<Authenticated key="private">
<ThemedLayoutV2>
<Outlet />
</ThemedLayoutV2>
</Authenticated>
}
>
<Route index element={<HomePage />} />
<Route path="*" element={<ResourceRoutes />} />
</Route>
I used Authenticated on HomePage here. check() is called but seems to return true, so the redirect is not used. Weird thing is, just the one line const { data, isLoading } = useIsAuthenticated(); already triggers this issue, as well. Anyone seen this behaviour before?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?