Yuken Tezuka пре 3 година
родитељ
комит
c6171013a9
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/app/src/stores/context.tsx

+ 1 - 1
packages/app/src/stores/context.tsx

@@ -45,7 +45,7 @@ export const useCurrentPathname = (initialData?: string): SWRResponse<string, Er
 };
 
 export const useCurrentPageId = (initialData?: Nullable<string>): SWRResponse<Nullable<string>, Error> => {
-  return useStaticSWR<Nullable<string>, Error>('currentPageId', initialData);
+  return useContextSWR<Nullable<string>, Error>('currentPageId', initialData);
 };
 
 export const useIsIdenticalPath = (initialData?: boolean): SWRResponse<boolean, Error> => {