This commit is contained in:
Rizky 2024-01-27 14:41:30 +07:00
parent 07b5ae6155
commit 4cea063783
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ import { w } from "../../utils/types/general";
import { IRoot } from "../../utils/types/root";
import { treeCacheBuild } from "../ed/logic/tree/build";
import { loadComponent } from "../ed/logic/comp/load";
import { get } from "idb-keyval";
import { get, set } from "idb-keyval";
import { nav } from "./render/script/extract-nav";
const decoder = new TextDecoder();
@ -61,6 +61,11 @@ export const ViPreview = (arg: { pathname: string }) => {
entry: p.page.entry,
url: p.page.cur.url,
};
set(
`page-${params.page_id}`,
p.preview.meta_cache[params.page_id],
nav.store
);
}
return (