Fix editor connection loop (#986)

* fix editor connection loop

* remove query refresh
This commit is contained in:
Philip Okugbe
2025-04-03 14:05:34 +01:00
committed by GitHub
parent a74d3feae4
commit 595bd1dc81
4 changed files with 25 additions and 23 deletions

View File

@ -19,8 +19,8 @@ export function useCollabToken(): UseQueryResult<ICollabToken, Error> {
queryKey: ["collab-token"],
queryFn: () => getCollabToken(),
staleTime: 20 * 60 * 60 * 1000, //20hrs
refetchInterval: 12 * 60 * 60 * 1000, // 12hrs
refetchIntervalInBackground: true,
//refetchInterval: 12 * 60 * 60 * 1000, // 12hrs
//refetchIntervalInBackground: true,
refetchOnMount: true,
//@ts-ignore
retry: (failureCount, error) => {