@reffuse/extension-query 0.1.5 #16

Merged
Thilawyn merged 347 commits from next into master 2025-06-01 05:28:47 +02:00
Showing only changes of commit 43a3793dbf - Show all commits

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
} }