Explorar el Código

refactor useSWRxPageInfo

Yuken Tezuka hace 3 años
padre
commit
8bcbb0fe06
Se han modificado 1 ficheros con 0 adiciones y 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;
 };