0.1.13 #18

Merged
Thilawyn merged 359 commits from next into master 2025-06-18 00:12:19 +02:00
Showing only changes of commit da7044ee9f - Show all commits

View File

@@ -389,6 +389,15 @@ export abstract class ReffuseNamespace<R> {
)
}
useRefFromValue<A, R>(
this: ReffuseNamespace<R>,
value: A,
): SubscriptionRef.SubscriptionRef<A> {
const ref = this.useRef(value)
this.useEffect(() => Ref.set(ref, value), [value])
return ref
}
useSubRef<B, const P extends PropertyPath.Paths<B>, R>(
this: ReffuseNamespace<R>,
parent: SubscriptionRef.SubscriptionRef<B>,