flight-with-observable-state
A Flight mixin which extends the flight-with-state mixin by exposing the component's state as an observable stream.
Installation
npm install --save flight-with-observable-state
This module requires flightjs
, rx
and flight-with-state
as a peer dependencies.
Example
Here's an example component that uses withObservableState
.
var ToggleButton = flight;
API
withObservableState
includes the flight-with-state mixin, and as such provides all of those methods as part of its API. You do not need to include withState
in your own component. withObservableState
also introduces the observableState
property.
observableState
observableState
property provides an observable stream of the component's changing state. In actuality it is an instance of a RXJS Observable connected to a RXJS BehaviourSubject.
Development
To develop this module, clone the repository and run:
$ npm install && npm test
If the tests pass, you have a working environment. You shouldn't need any external dependencies.
Contributing to this project
Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.