0.1.8 #11

Merged
Thilawyn merged 233 commits from next into master 2025-04-21 02:08:14 +02:00
Showing only changes of commit 52a36cb882 - Show all commits

View File

@@ -418,6 +418,17 @@ export abstract class ReffuseHelpers<R> {
return stream
}
RefState<A>(
this: ReffuseHelpers<R>,
props: {
readonly ref: SubscriptionRef.SubscriptionRef<A>
readonly children: (state: [A, React.Dispatch<React.SetStateAction<A>>]) => React.ReactNode
},
): React.ReactNode {
return props.children(this.useRefState(props.ref))
}
}