This commit is contained in:
Rizky 2023-11-15 16:44:03 +07:00
parent 6d6add4bea
commit 246f106c35
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ export const siteLoader: Loader = {
};
const load = async (url: string) => {
console.log("loading", `${w.basepath}${base}${url}`);
const res = await fetch(`${w.basepath}${base}${url}`);
const text = await res.text();
const json = JSON.parse(text);

View File

@ -25,6 +25,7 @@ const Root: FC<{ url: URL; Live: any }> = ({ url, Live }) => {
render({});
};
console.log(siteLoader)
const Provider = GlobalContext.Provider as FC<{ value: any; children: any }>;
return (
<Provider value={w.prasiContext}>