xenial-black
xenial-black2w 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?
6 Replies
vicious-gold
vicious-gold2w ago
Hello @jthoward @pestaa we want to provide more personalized features built into devtools in the future. About telemetry, it doesn't have any additional telemetry other than the default telemetry, which can be disabled. https://refine.dev/docs/further-readings/telemetry/
extended-salmon
extended-salmon2w ago
Cool, thanks for the reply. Hope to see devtools grow!
criminal-purple
criminal-purple7d ago
guys how can i change the metadata for any refine project its not next js just plain vite
vicious-gold
vicious-gold6d ago
I'm not clear what do you mean by metadata but you can use #ask-any-question to get help from AI chatbot
criminal-purple
criminal-purple6d ago
thank you for replying but i managed to sort it out. I meant the metadata of a refine project in terms of the content of head element i was finding no standard way to modify the tab titles etc since at times it showed what i set in index.html but other times it showed the default placeholder from refine during authentication and i am not using nextjs either so I can't do an export metadata: Metadata
vicious-gold
vicious-gold6d ago
You can use <DocumentTitleHandler /> component for react-router to modify default title structure of pages. Here is the documentation page: https://refine.dev/docs/routing/integrations/react-router/#documenttitlehandler
React Router | Refine
Refine provides router bindings and utilities for React Router. It is built on top of the react-router package. This package will provide easy integration between Refine and react-router for both existing projects and new projects.