@@ -50,8 +50,9 @@ const CounterValueView = Component.make("CounterValue")(function* () {
|
||||
})
|
||||
```
|
||||
|
||||
If state belongs to a single Effect-FC component instance but still benefits
|
||||
from Lens/Subscribable APIs, create it with `Component.useOnMount`:
|
||||
If state belongs to a single Effect-FC component instance, or to a shallow
|
||||
hierarchy of subcomponents that receive it through props, create it with
|
||||
`Component.useOnMount`:
|
||||
|
||||
```tsx
|
||||
import { Effect, SubscriptionRef } from "effect"
|
||||
|
||||
Reference in New Issue
Block a user