Skip to content

refactor(config): pass instance context to containsPath#21882

Open
Brendonovich wants to merge 1 commit intodevfrom
split/contains-path-ctx
Open

refactor(config): pass instance context to containsPath#21882
Brendonovich wants to merge 1 commit intodevfrom
split/contains-path-ctx

Conversation

@Brendonovich
Copy link
Copy Markdown
Member

This alleviates an error we've been seeing in Electron builds that embed the server rather than using the CLI.
image
Accessing Instance inside containsPath fails in some specific circumstances where ALS context seems to not be carried over. To remedy this I've made containsPath accept an optional override for Instance which in this case we use to pass the current InstanceRef value. This keeps retrieval of InstanceContext within Effect instead of relying on ALS. A cleaner solution is probably possible but this works for now.

@Brendonovich Brendonovich requested a review from kitlangton April 10, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant