createViewChannelStore<T, R>

STORE CREATOR

Creates a store containing the provided ViewChannel from @uiloos/core, and subscribes to that ViewChannel. This way each time the ViewChannel is changed your component re-renders.

Since 1.3.0

Signature

createViewChannelStore(
viewChannel : ViewChannel<T,R>
): Readable<ViewChannel>

Parameters

viewChannel: ViewChannel<T,R>

The ViewChannel to subscribe to.

Returns

A Readable<ViewChannel<T, R>>