API update

This commit is contained in:
Julien Valverdé
2025-02-25 14:48:58 +01:00
parent 8754020323
commit 44de864713
8 changed files with 42 additions and 44 deletions

View File

@@ -14,7 +14,7 @@ export const LazyRefExtension = ReffuseExtension.make(() => ({
const initialState = React.useMemo(() => runSync(ref), [])
const [reactStateValue, setReactStateValue] = React.useState(initialState)
this.useFork(Stream.runForEach(ref.changes, v => Effect.sync(() =>
this.useFork(() => Stream.runForEach(ref.changes, v => Effect.sync(() =>
setReactStateValue(v)
)), [ref])