Header menu logo Navs

IComponentContexExtensions Type

Static members

Static member Description

IComponentContexExtensions.useAVal (context, aVal)

Full Usage: IComponentContexExtensions.useAVal (context, aVal)

Parameters:
Returns: IReadable<'T>
Modifiers: inline
Type parameters: 'T

Subscribes to an adaptive value and returns an IReadable that will emit changes any time The adaptive value gets an update.

context : IComponentContext
aVal : aval<'T>
Returns: IReadable<'T>

IComponentContexExtensions.useCval (context, cVal)

Full Usage: IComponentContexExtensions.useCval (context, cVal)

Parameters:
Returns: IWritable<'T>

Takes a changeable value and returns an IWritable that will allow you to update and read from it.

context : IComponentContext
cVal : cval<'T>
Returns: IWritable<'T>

IComponentContexExtensions.useRouter (context, router)

Full Usage: IComponentContexExtensions.useRouter (context, router)

Parameters:
Returns: IReadable<IView voption>
Modifiers: inline

Subscribes to the router and returns an IReadable that emits the view that is being rendered.

context : IComponentContext
router : IRouter<IView>
Returns: IReadable<IView voption>

Type something to start searching.