This commit is contained in:
@@ -27,7 +27,7 @@ export abstract class ReffuseNamespace<R> {
|
||||
declare ["constructor"]: ReffuseNamespaceClass<R>
|
||||
|
||||
constructor() {
|
||||
this.SubRef = this.SubRef.bind(this as any) as any
|
||||
this.SubRefFromPath = this.SubRefFromPath.bind(this as any) as any
|
||||
this.SubscribeRefs = this.SubscribeRefs.bind(this as any) as any
|
||||
this.RefState = this.RefState.bind(this as any) as any
|
||||
this.SubscribeStream = this.SubscribeStream.bind(this as any) as any
|
||||
@@ -404,7 +404,7 @@ export abstract class ReffuseNamespace<R> {
|
||||
return ref
|
||||
}
|
||||
|
||||
useSubRef<B, const P extends PropertyPath.Paths<B>, R>(
|
||||
useSubRefFromPath<B, const P extends PropertyPath.Paths<B>, R>(
|
||||
this: ReffuseNamespace<R>,
|
||||
parent: SubscriptionRef.SubscriptionRef<B>,
|
||||
path: P,
|
||||
@@ -528,7 +528,7 @@ export abstract class ReffuseNamespace<R> {
|
||||
}
|
||||
|
||||
|
||||
SubRef<B, const P extends PropertyPath.Paths<B>, R>(
|
||||
SubRefFromPath<B, const P extends PropertyPath.Paths<B>, R>(
|
||||
this: ReffuseNamespace<R>,
|
||||
props: {
|
||||
readonly parent: SubscriptionRef.SubscriptionRef<B>,
|
||||
@@ -536,7 +536,7 @@ export abstract class ReffuseNamespace<R> {
|
||||
readonly children: (subRef: SubscriptionSubRef.SubscriptionSubRef<PropertyPath.ValueFromPath<B, P>, B>) => React.ReactNode
|
||||
},
|
||||
): React.ReactNode {
|
||||
return props.children(this.useSubRef(props.parent, props.path))
|
||||
return props.children(this.useSubRefFromPath(props.parent, props.path))
|
||||
}
|
||||
|
||||
SubscribeRefs<
|
||||
|
||||
Reference in New Issue
Block a user