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

View File

@@ -18,6 +18,10 @@ export interface ScopeOptions {
export abstract class ReffuseHelpers<R> { export abstract class ReffuseHelpers<R> {
declare ["constructor"]: ReffuseHelpersClass<R> declare ["constructor"]: ReffuseHelpersClass<R>
constructor() {
this.RefState = this.RefState.bind(this as any) as any
}
useContext<R>(this: ReffuseHelpers<R>): Context.Context<R> { useContext<R>(this: ReffuseHelpers<R>): Context.Context<R> {
return ReffuseContext.useMergeAll(...this.constructor.contexts) return ReffuseContext.useMergeAll(...this.constructor.contexts)