Skip to content

Handle local Effect.provide calls - #765

Merged
mattiamanzati merged 1 commit into
mainfrom
fix/multiple-effect-provide-local
Jul 23, 2026
Merged

mattiamanzati merged 1 commit into
mainfrom
fix/multiple-effect-provide-local

Conversation

@mattiamanzati

Copy link
Copy Markdown
Contributor

Summary

  • Treat Effect v4 Effect.provide(layer, { local: true }) transformations as boundaries in multipleEffectProvide
  • Continue reporting and fixing chains of two or more non-local provides after a local provide
  • Add v4 fixtures, snapshots, and a patch changeset

Example

Effect.void.pipe(
  Effect.provide(LocalLayer, { local: true }),
  Effect.provide(LayerA),
  Effect.provide(LayerB)
)

The local provide is preserved, while the diagnostic and fix target only LayerA and LayerB.

Testing

  • pnpm codegen
  • pnpm lint-fix
  • pnpm check
  • pnpm test
  • pnpm test:v4

@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c517ca6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@effect/language-service Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mattiamanzati
mattiamanzati merged commit 6b9dab5 into main Jul 23, 2026
5 checks passed
@mattiamanzati
mattiamanzati deleted the fix/multiple-effect-provide-local branch July 23, 2026 06:57
@github-actions github-actions Bot mentioned this pull request Jul 23, 2026
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