We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d0a956 commit 703ef2cCopy full SHA for 703ef2c
projects/app/src/components/Layout/auth.tsx
@@ -26,13 +26,14 @@ const Auth = ({ children }: { children: JSX.Element | React.ReactNode }) => {
26
useQuery(
27
[router.pathname],
28
() => {
29
- if (unAuthPage[router.pathname] === true || userInfo) {
+ if (unAuthPage[router.pathname] === true) {
30
return null;
31
} else {
32
return initUserInfo();
33
}
34
},
35
{
36
+ refetchInterval: 10 * 60 * 1000,
37
onError(error) {
38
console.log('error->', error);
39
router.replace(
0 commit comments