|
|
@@ -10,7 +10,6 @@ import { IEditorSettings } from '~/interfaces/editor-settings';
|
|
|
import { SlackChannels } from '~/interfaces/user-trigger-notification';
|
|
|
|
|
|
import {
|
|
|
- useCurrentPathname,
|
|
|
useCurrentUser, useDefaultIndentSize, useIsGuestUser,
|
|
|
} from './context';
|
|
|
// import { localStorageMiddleware } from './middlewares/sync-to-storage';
|
|
|
@@ -19,11 +18,7 @@ import { useStaticSWR } from './use-static-swr';
|
|
|
|
|
|
|
|
|
export const useEditingMarkdown = (initialData?: string): SWRResponse<string, Error> => {
|
|
|
- // need to include useCurrentPathname not useCurrentPagePath
|
|
|
- // https://github.com/weseek/growi/pull/7301
|
|
|
- const { data: currentPagePath } = useCurrentPathname();
|
|
|
-
|
|
|
- return useStaticSWR(['editingMarkdown', currentPagePath], initialData);
|
|
|
+ return useStaticSWR('editingMarkdown', initialData);
|
|
|
};
|
|
|
|
|
|
|