Explorar o código

refactor useSWRxPageInfo

Yuken Tezuka %!s(int64=3) %!d(string=hai) anos
pai
achega
8bcbb0fe06
Modificáronse 1 ficheiros con 0 adicións e 5 borrados
  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;
 };