diff options
| author | Dax Raad <[email protected]> | 2025-07-02 11:18:25 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-07-02 11:18:25 -0400 |
| commit | fa35407572f5018180bc8f5354b80c2978e20bfb (patch) | |
| tree | 28ee275c2e9776ae0d6d583c5ec77eba8e6da08b | |
| parent | 8bbbc07aff243560290c988905057a45a747978a (diff) | |
| download | opencode-fa35407572f5018180bc8f5354b80c2978e20bfb.tar.gz opencode-fa35407572f5018180bc8f5354b80c2978e20bfb.zip | |
fix lazy loading
| -rw-r--r-- | packages/opencode/src/util/lazy.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/opencode/src/util/lazy.ts b/packages/opencode/src/util/lazy.ts index 3533bcc81..935ebe0f9 100644 --- a/packages/opencode/src/util/lazy.ts +++ b/packages/opencode/src/util/lazy.ts @@ -4,6 +4,7 @@ export function lazy<T>(fn: () => T) { return (): T => { if (loaded) return value as T + loaded = true value = fn() return value as T } |
