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 52a36cb882 - Show all commits

View File

@@ -418,6 +418,17 @@ export abstract class ReffuseHelpers<R> {
return stream 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))
}
} }