diff --git a/platform/src/util/lazy.ts b/platform/src/util/lazy.ts index c26e25747..d52783ac2 100644 --- a/platform/src/util/lazy.ts +++ b/platform/src/util/lazy.ts @@ -4,8 +4,8 @@ export function lazy(callback: () => T) { return () => { if (!loaded) { - result = callback(); loaded = true; + result = callback(); } return result; };