@reffuse/extension-query 0.1.4 #15

Merged
Thilawyn merged 340 commits from next into master 2025-05-26 04:15:01 +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))
}
} }