refactor(core): optimize location startup

This commit is contained in:
Dax Raad
2026-07-09 13:15:20 -04:00
parent b642f9c7bc
commit 85fdb3bde6
12 changed files with 316 additions and 378 deletions
+1
View File
@@ -49,6 +49,7 @@ const layer = Layer.effect(
const scope = yield* Scope.Scope
const materialized = new Map<string, Info>()
const state = State.create<Data, Draft>({
name: "reference",
initial: () => ({ sources: new Map() }),
draft: (draft) => ({
add: (name, source) => draft.sources.set(name, source as Types.DeepMutable<Source>),