useViewChannel<T, R>

COMPOSABLE

A composable which when given a ViewChannel from @uiloos/core returns the ViewChannel inside of a ref.

Since 1.0.0

Signature

useViewChannel(
viewChannel : ViewChannel<T,R>
): Ref<ViewChannel>

Parameters

viewChannel: ViewChannel<T,R>

The ViewChannel to wrap in a ref.

Returns

A ref containing an instance of the ViewChannel from @uiloos/core