From 7ae5d085553424503844e78eef113ea9e4fb365e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Thu, 11 Jun 2026 12:29:10 +0200 Subject: [PATCH] Docs --- packages/docs/docs/state-management.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/docs/docs/state-management.md b/packages/docs/docs/state-management.md index 8e2a84c..dde9485 100644 --- a/packages/docs/docs/state-management.md +++ b/packages/docs/docs/state-management.md @@ -18,7 +18,7 @@ scopes. The usual pattern is: `effect-fc` re-exports the `Lens` and `Subscribable` modules from [`effect-lens`](https://github.com/Thiladev/effect-lens) for convenience. The core data model and transformation APIs belong to `effect-lens`, so check the -`effect-lens` documentation for the full Lens/Subscribable API. +[`effect-lens` documentation](https://github.com/Thiladev/effect-lens/tree/master/packages/effect-lens) for the full Lens/Subscribable API. ## Where To Store State @@ -124,11 +124,11 @@ const CounterControlsView = Component.make("CounterControls")( const increment = yield* Component.useCallbackSync( () => Lens.update(state.count, (n) => n + 1), - [state.count], + [], ) const reset = yield* Component.useCallbackSync( () => Lens.set(state.count, 0), - [state.count], + [], ) return ( @@ -239,4 +239,4 @@ Updating the focused `name` Lens through `Lens.useState` updates the parent For focusing into nested state, deriving lenses, custom write behavior, and the complete API, refer to the -[`effect-lens` documentation](https://github.com/Thiladev/effect-lens). +[`effect-lens` documentation](https://github.com/Thiladev/effect-lens/tree/master/packages/effect-lens).