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 ff5503cfd1 - Show all commits

View File

@@ -380,10 +380,10 @@ export abstract class ReffuseNamespace<R> {
useRef<A, R>(
this: ReffuseNamespace<R>,
value: A,
initialValue: A,
): SubscriptionRef.SubscriptionRef<A> {
return this.useMemo(
() => SubscriptionRef.make(value),
() => SubscriptionRef.make(initialValue),
[],
{ doNotReExecuteOnRuntimeOrContextChange: true }, // Do not recreate the ref when the context changes
)