Skip to content

DuncanWalter/silhouette-plugin-rxjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RXJS Plugin for Silhouette

This plugin adds an asObservable function to all silhouettes which returns an RXJS BehaviorSubject representing the state slice within the silhouette instance over time. The observables are created lazily, automatically end subscriptions, and can also be acquired using using a stream getter property.

import { create } from 'silhouette-core'
import rxjsPlugin from 'silhouette-plugin-rxjs'

const sil = create( rxjsPlugin() );

sil.stream.subscribe(v => console.log(v)); // > {}
console.log(sil.stream.value); // > {}

About

A plugin for silhouette embedding observables into the store.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published