Fix
All checks were successful
Lint / lint (push) Successful in 14s

This commit is contained in:
Julien Valverdé
2025-04-30 16:27:08 +02:00
parent da7044ee9f
commit 43a3793dbf

View File

@@ -389,12 +389,12 @@ export abstract class ReffuseNamespace<R> {
) )
} }
useRefFromValue<A, R>( useRefFromReactiveValue<A, R>(
this: ReffuseNamespace<R>, this: ReffuseNamespace<R>,
value: A, value: A,
): SubscriptionRef.SubscriptionRef<A> { ): SubscriptionRef.SubscriptionRef<A> {
const ref = this.useRef(value) const ref = this.useRef(value)
this.useEffect(() => Ref.set(ref, value), [value]) this.useEffect(() => Ref.set(ref, value), [value], { doNotReExecuteOnRuntimeOrContextChange: true })
return ref return ref
} }