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).