useViewChannel<T, R>

HOOK

A hook which when given a ViewChannel from @uiloos/core subscribes to that ViewChannel. This way each time the ViewChannel is changed your component re-renders.

Since 1.0.0

Signature

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

Parameters

viewChannel: ViewChannel<T,R>

The ViewChannel to subscribe to.

Returns

An instance of the ViewChannel from @uiloos/core