fix
This commit is contained in:
parent
835238ea11
commit
b256d5bd5b
|
|
@ -31,6 +31,7 @@ export const routeLive = (p: PG, pathname: string) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(page_id);
|
||||||
if (page_id) {
|
if (page_id) {
|
||||||
(window as any).prasiPageID = page_id;
|
(window as any).prasiPageID = page_id;
|
||||||
const promises: Promise<void>[] = [];
|
const promises: Promise<void>[] = [];
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@ import { ItemMeta, PG } from "./global";
|
||||||
import { mergeScopeUpwards } from "./tree-scope";
|
import { mergeScopeUpwards } from "./tree-scope";
|
||||||
import { LItem } from "../elements/l-item";
|
import { LItem } from "../elements/l-item";
|
||||||
import { extractNavigate, preload } from "./route";
|
import { extractNavigate, preload } from "./route";
|
||||||
|
import { createId } from "@paralleldrive/cuid2";
|
||||||
|
import { fillID } from "../../editor/tools/fill-id";
|
||||||
|
|
||||||
export type PropCompFC = FC<{}>;
|
export type PropCompFC = FC<{}>;
|
||||||
|
|
||||||
|
|
@ -67,9 +69,9 @@ export const treePropEval = (
|
||||||
if (prop.content) {
|
if (prop.content) {
|
||||||
if (p.treeMeta[prop.content.id]) {
|
if (p.treeMeta[prop.content.id]) {
|
||||||
p.treeMeta[prop.content.id].jsxParentId = parent_id;
|
p.treeMeta[prop.content.id].jsxParentId = parent_id;
|
||||||
}
|
|
||||||
|
|
||||||
return <LItem id={prop.content.id} fromProp={true} />;
|
return <LItem id={prop.content.id} fromProp={true} />;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return <></>;
|
return <></>;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ const Root: FC<{ url: URL; Live: any }> = ({ url, Live }) => {
|
||||||
w.prasiContext.render = () => {
|
w.prasiContext.render = () => {
|
||||||
render({});
|
render({});
|
||||||
};
|
};
|
||||||
w.rootRender = w.prasiContext.render;
|
|
||||||
|
|
||||||
const Provider = GlobalContext.Provider as FC<{ value: any; children: any }>;
|
const Provider = GlobalContext.Provider as FC<{ value: any; children: any }>;
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -88,9 +88,9 @@ export const defineWindow = async (awaitServerUrl = true) => {
|
||||||
w.preventPopRender = false;
|
w.preventPopRender = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (w.rootRender) {
|
if (w.prasiContext && w.prasiContext.render) {
|
||||||
w.pathname = location.pathname;
|
w.pathname = location.pathname;
|
||||||
w.rootRender();
|
w.prasiContext.render();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue