This commit is contained in:
Rizky 2023-10-24 11:29:29 +07:00
parent 1de068c000
commit 489b0eea54
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ export const useGlobal = <T extends object>(
const { global, render } = ctx; const { global, render } = ctx;
if (!global[_id]) { if (!global[_id]) {
global[_id] = structuredClone(defaultValue); global[_id] = deepClone(defaultValue);
} }
useEffect(() => { useEffect(() => {