ThilawynandJulien Valverdé a3119a4479
Publish / publish (push) Successful in 1m56s
Lint / lint (push) Successful in 25s
Add Component.provide and improve mutation state handling (#73)
## 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.

---------

Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: #73
2026-08-21 16:54:22 +02:00
2025-07-01 22:34:50 +02:00
2025-10-03 18:19:23 +02:00
2025-07-01 22:34:50 +02:00
2025-10-13 00:57:01 +02:00

Effect View logo

Effect View Monorepo

Write React components as typed Effect programs.

This repository contains Effect View, its documentation, development examples, and supporting tooling. Effect View brings Effect's typed services, resource safety, concurrency, and data modeling to React while keeping ordinary React components, hooks, and JSX.

Packages

Package Description
effect-view The Effect View library for Effect v4 and React 19.
@effect-view/vite-plugin Vite Fast Refresh support for Effect View components.
docs The Effect View documentation, built with Docusaurus.
example Example application using Effect View and Effect v4.
effect-fc Legacy Effect v3 package.
effect-fc-example Example application for the legacy package.

Development

The monorepo uses Bun workspaces and Turborepo.

bun install

Run checks and builds from the repository root:

bun run lint:tsc
bun run lint:biome
bun run test
bun run build

Start the Effect View example or documentation site:

bun run --cwd packages/example dev
bun run --cwd packages/docs start

Documentation

Read the documentation at thila.dev/effect-view.

License

MIT

S
Description
Write React function components using Effect generators!
https://thila.dev/effect-view
Readme MIT
3.7 MiB
Languages
TypeScript 96.3%
CSS 3.4%
HTML 0.2%