@@ -7,11 +7,10 @@ export class Reffuse<R, ER> {
|
|||||||
constructor(
|
constructor(
|
||||||
private readonly runtime: ManagedRuntime.ManagedRuntime<R, ER>
|
private readonly runtime: ManagedRuntime.ManagedRuntime<R, ER>
|
||||||
) {
|
) {
|
||||||
const Context = React.createContext(runtime)
|
this.Context = React.createContext(runtime)
|
||||||
this.Context = Context
|
|
||||||
|
|
||||||
this.Provider = (props: { readonly children?: React.ReactNode }) => (
|
this.Provider = (props: { readonly children?: React.ReactNode }) => (
|
||||||
<Context
|
<this.Context
|
||||||
{...props}
|
{...props}
|
||||||
value={runtime}
|
value={runtime}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user