Add Component.provide and improve mutation state handling #73

Merged
Thilawyn merged 8 commits from next into master 2026-08-21 16:54:22 +02:00
Owner

Summary

Add mount-lifetime layer provisioning through Component.provide and improve mutation state handling.

Changes

  • Add dual-form Component.provide support for direct and pipeline usage.
  • Build provided layers once per mounted component and release them on unmount.
  • Refactor mutation state to retain mutation keys and finalized results.
  • Add non-blocking mutateView behavior and failure-state handling.
  • Update MutationForm to use the new mutation state shape.
  • Add Component and Mutation tests.
  • Update documentation and the lens form example.
  • Bump effect-view to 0.1.4.

Testing

  • bun run --cwd packages/effect-view test
  • 7 test files passed, 32 tests passed.
## Summary Add mount-lifetime layer provisioning through `Component.provide` and improve mutation state handling. ## Changes - Add dual-form `Component.provide` support for direct and pipeline usage. - Build provided layers once per mounted component and release them on unmount. - Refactor mutation state to retain mutation keys and finalized results. - Add non-blocking `mutateView` behavior and failure-state handling. - Update `MutationForm` to use the new mutation state shape. - Add Component and Mutation tests. - Update documentation and the lens form example. - Bump `effect-view` to `0.1.4`. ## Testing - `bun run --cwd packages/effect-view test` - 7 test files passed, 32 tests passed.
Thilawyn added 7 commits 2026-08-21 16:44:15 +02:00
Refactor Form, add Component.provide
Lint / lint (push) Failing after 19s
ecd337a45d
Add Mutation tests
Lint / lint (push) Failing after 18s
1dd2e395ce
Fix Component.provide
Lint / lint (push) Failing after 19s
07a79f9b83
Fix example
Lint / lint (push) Failing after 57s
6bbcfb96a0
Add Component.provide to docs
Lint / lint (push) Failing after 18s
7ef93fac68
Bump version
Lint / lint (push) Failing after 18s
f9eb12f2bf
Fix example
Lint / lint (push) Successful in 27s
Test build / test-build (pull_request) Successful in 1m17s
77d6acb1e8
Thilawyn added 1 commit 2026-08-21 16:51:57 +02:00
Upgrade Bun and Node
Lint / lint (push) Successful in 25s
Test build / test-build (pull_request) Successful in 1m8s
c65336f27f
Thilawyn merged commit a3119a4479 into master 2026-08-21 16:54:22 +02:00
Thilawyn deleted branch next 2026-08-21 16:54:22 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Thilawyn/effect-view#73