This commit is contained in:
Rizky 2024-04-28 23:34:17 +07:00
parent d51366b53e
commit ee39e5d5db
2 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,11 @@ export const createViLocal = (
const [_, set] = useState({}); const [_, set] = useState({});
const local = ref.current; const local = ref.current;
local.render = () => { local.render = () => {
set({}); if ((window as any).prasiContext?.render) {
(window as any).prasiContext?.render();
} else {
set({});
}
}; };
updatePropScope(vi, meta, meta.script?.scope, parent_key); updatePropScope(vi, meta, meta.script?.scope, parent_key);