mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-13 16:13:24 +01:00
do not refetch hierarchy room summary on window focus
This commit is contained in:
parent
d8564b55d1
commit
e909809efb
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ export function HierarchyRoomSummaryLoader({
|
|||
queryKey: [roomId, `hierarchy`],
|
||||
queryFn: fetchSummary,
|
||||
retryOnMount: false,
|
||||
refetchOnWindowFocus: false,
|
||||
retry: (failureCount, err) => {
|
||||
setError(err);
|
||||
if (failureCount > 3) return false;
|
||||
|
|
Loading…
Reference in a new issue