Comparing version 1.1.1 to 1.1.3
@@ -37,3 +37,3 @@ "use strict"; | ||
this.action$ = new rxjs_1.BehaviorSubject(exports.INIT_STORE_ACTION); | ||
this.update$ = new rxjs_1.ReplaySubject(1); | ||
this.update$ = new rxjs_1.ReplaySubject(0); | ||
this.action$ | ||
@@ -40,0 +40,0 @@ .subscribe(function (action) { |
{ | ||
"name": "luna", | ||
"version": "1.1.1", | ||
"version": "1.1.3", | ||
"description": "a reactive redux-like store", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -42,3 +42,3 @@ # Luna, a reactive redux library with built-in support for async action creator and Thunks | ||
The `store$.update$` is a replay subject for `{state, action}` bundle. It receives updated state/action bundle after the action has been applied to the store. This stream is used as a `post-action` hook for middlewares such as [luna-saga](https://github.com/escherpad/luna-saga). The reason this `update$` stream is useful is because the `store$` stream does not update when the state returned is identical to before. Therefore to get `{state, action}` updates for `noop` actions, we need this dedicated update stream. | ||
The `store$.update$` is a replay subject for `{state, action}` bundle. It receives updated state/action bundle after the action has been applied to the store. This stream is used as a `post-action` hook for middlewares such as [luna-saga](https://github.com/escherpad/luna-saga). | ||
@@ -45,0 +45,0 @@ |
@@ -22,3 +22,3 @@ /** Created by ge on 12/4/15. */ | ||
this.action$ = new BehaviorSubject<Action>(INIT_STORE_ACTION); | ||
this.update$ = new ReplaySubject<StateActionBundle<TState>>(1); | ||
this.update$ = new ReplaySubject<StateActionBundle<TState>>(0); | ||
this.action$ | ||
@@ -25,0 +25,0 @@ .subscribe( |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48412