nursing-limeN
Refine14mo ago
1 reply
nursing-lime

hello here. might not be worth a github

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>

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?
Was this page helpful?