From 4b970ce9f9a3564c46b71aeb3da98f343c2a9c71 Mon Sep 17 00:00:00 2001 From: Dawid Linek Date: Tue, 3 Dec 2024 18:03:44 +0100 Subject: [PATCH 1/3] feat: add block participants updates --- src/pages/rejestracja/[participationSlug]/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/rejestracja/[participationSlug]/index.tsx b/src/pages/rejestracja/[participationSlug]/index.tsx index ecb2643..8e9e862 100644 --- a/src/pages/rejestracja/[participationSlug]/index.tsx +++ b/src/pages/rejestracja/[participationSlug]/index.tsx @@ -68,8 +68,12 @@ export default function Building({ return blocks.data; }, - }); - + refetchOnWindowFocus: true, + refetchOnReconnect: true, + refetchOnMount: true, + refetchInterval: 1000 + }, +); const currentBlocks = allBlocksQuery.data ?.filter((block) => block.parentBlockId === blockId) .slice() From f885195fb7efe1ab76d433806016946a4653395e Mon Sep 17 00:00:00 2001 From: Dawid Linek Date: Tue, 3 Dec 2024 18:21:38 +0100 Subject: [PATCH 2/3] refactor: autofix --- src/pages/rejestracja/[participationSlug]/index.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/rejestracja/[participationSlug]/index.tsx b/src/pages/rejestracja/[participationSlug]/index.tsx index 8e9e862..e8d626f 100644 --- a/src/pages/rejestracja/[participationSlug]/index.tsx +++ b/src/pages/rejestracja/[participationSlug]/index.tsx @@ -68,12 +68,11 @@ export default function Building({ return blocks.data; }, - refetchOnWindowFocus: true, - refetchOnReconnect: true, + refetchOnWindowFocus: true, + refetchOnReconnect: true, refetchOnMount: true, - refetchInterval: 1000 - }, -); + refetchInterval: 1000, + }); const currentBlocks = allBlocksQuery.data ?.filter((block) => block.parentBlockId === blockId) .slice() From c115f525216b76390e7df1cad8f4d0942c7fd3e3 Mon Sep 17 00:00:00 2001 From: Dawid Linek Date: Sat, 11 Jan 2025 12:51:16 +0100 Subject: [PATCH 3/3] refactor: remove default properties --- src/pages/rejestracja/[participationSlug]/index.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/pages/rejestracja/[participationSlug]/index.tsx b/src/pages/rejestracja/[participationSlug]/index.tsx index e8d626f..9555eec 100644 --- a/src/pages/rejestracja/[participationSlug]/index.tsx +++ b/src/pages/rejestracja/[participationSlug]/index.tsx @@ -68,9 +68,6 @@ export default function Building({ return blocks.data; }, - refetchOnWindowFocus: true, - refetchOnReconnect: true, - refetchOnMount: true, refetchInterval: 1000, }); const currentBlocks = allBlocksQuery.data