fix
This commit is contained in:
parent
6d6add4bea
commit
246f106c35
|
|
@ -49,6 +49,7 @@ export const siteLoader: Loader = {
|
||||||
};
|
};
|
||||||
|
|
||||||
const load = async (url: string) => {
|
const load = async (url: string) => {
|
||||||
|
console.log("loading", `${w.basepath}${base}${url}`);
|
||||||
const res = await fetch(`${w.basepath}${base}${url}`);
|
const res = await fetch(`${w.basepath}${base}${url}`);
|
||||||
const text = await res.text();
|
const text = await res.text();
|
||||||
const json = JSON.parse(text);
|
const json = JSON.parse(text);
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,7 @@ const Root: FC<{ url: URL; Live: any }> = ({ url, Live }) => {
|
||||||
render({});
|
render({});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
console.log(siteLoader)
|
||||||
const Provider = GlobalContext.Provider as FC<{ value: any; children: any }>;
|
const Provider = GlobalContext.Provider as FC<{ value: any; children: any }>;
|
||||||
return (
|
return (
|
||||||
<Provider value={w.prasiContext}>
|
<Provider value={w.prasiContext}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue