Przeglądaj źródła

refactor useSWRxPageInfo

Yuken Tezuka 3 lat temu
rodzic
commit
8bcbb0fe06
1 zmienionych plików z 0 dodań i 5 usunięć
  1. 0 5
      packages/app/src/stores/page.tsx

+ 0 - 5
packages/app/src/stores/page.tsx

@@ -89,11 +89,6 @@ export const useSWRxPageInfo = (
     { fallbackData: initialData },
   );
 
-  // use mutate because fallbackData does not work
-  if (initialData != null) {
-    swrResult.mutate(initialData);
-  }
-
   return swrResult;
 };