|
@@ -238,14 +238,11 @@ const Page: NextPageWithLayout<Props> = (props: Props) => {
|
|
|
useHasDraftOnHackmd(pageWithMeta?.data.hasDraftOnHackmd ?? false);
|
|
useHasDraftOnHackmd(pageWithMeta?.data.hasDraftOnHackmd ?? false);
|
|
|
useCurrentPathname(props.currentPathname);
|
|
useCurrentPathname(props.currentPathname);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
const { mutate: mutateInitialPage } = useSWRxCurrentPage();
|
|
const { mutate: mutateInitialPage } = useSWRxCurrentPage();
|
|
|
const { trigger: mutateCurrentPage } = useSWRMUTxCurrentPage();
|
|
const { trigger: mutateCurrentPage } = useSWRMUTxCurrentPage();
|
|
|
const { mutate: mutateEditingMarkdown } = useEditingMarkdown();
|
|
const { mutate: mutateEditingMarkdown } = useEditingMarkdown();
|
|
|
const { data: currentPageId, mutate: mutateCurrentPageId } = useCurrentPageId();
|
|
const { data: currentPageId, mutate: mutateCurrentPageId } = useCurrentPageId();
|
|
|
|
|
|
|
|
- // useSWRxCurrentPage(pageWithMeta?.data ?? null); // store initial data
|
|
|
|
|
-
|
|
|
|
|
// Store initial data
|
|
// Store initial data
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
mutateInitialPage(pageWithMeta?.data ?? null);
|
|
mutateInitialPage(pageWithMeta?.data ?? null);
|