Ref state fix
All checks were successful
Lint / lint (push) Successful in 16s

This commit is contained in:
Julien Valverdé
2025-03-24 18:38:14 +01:00
parent 7cf5367409
commit 516e0a465d
2 changed files with 2 additions and 2 deletions

View File

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