2026-05-15 17:35:44 +00:00
# Instance Context
2026-04-15 14:57:58 +00:00
2026-05-15 17:35:44 +00:00
Instance selection is now Effect-provided context.
2026-04-15 14:57:58 +00:00
2026-05-15 17:35:44 +00:00
Use these APIs:
2026-04-15 14:57:58 +00:00
2026-05-15 17:35:44 +00:00
- `InstanceRef` for the current project context.
- `WorkspaceRef` for the current workspace id.
- `InstanceState.context` / `InstanceState.directory` inside Effect services that require an instance.
- `InstanceStore` at entry boundaries that need to load, reload, or dispose project contexts.
- `EffectBridge` for native, plugin, or plain JavaScript callback boundaries that need to re-enter Effect with captured refs.
2026-04-15 14:57:58 +00:00
2026-05-15 17:35:44 +00:00
Do not add new ambient instance globals. Promise and callback boundaries should either stay in Effect, use `EffectBridge` , or pass the required context explicitly.