observe-redux-store
Advanced tools
Comparing version 1.1.0 to 1.1.1-rc
@@ -1,1 +0,1 @@ | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=void 0;function o(){var o=t(e.getState());o!==n&&(r(o,n),n=o)}var u=e.subscribe(o);return o(),u}}])}); | ||
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.i=function(e){return e},r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){var n=void 0;function o(){var o=t(e.getState());if(o!==n){var u=n;n=o,r(o,u)}}var u=e.subscribe(o);return o(),u}}])}); |
{ | ||
"name": "observe-redux-store", | ||
"version": "1.1.0", | ||
"version": "1.1.1-rc", | ||
"description": "observe-redux-store", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -7,10 +7,11 @@ export default function observeStore(store, select, onChange) { | ||
if (nextState !== currentState) { | ||
onChange(nextState, currentState); | ||
const _current = currentState; | ||
currentState = nextState; | ||
onChange(nextState, _current); | ||
} | ||
} | ||
const unsubscribe = store.subscribe(handleChange); | ||
const unsubscribe = store.subscribe(handleChange); | ||
handleChange(); | ||
return unsubscribe; | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3224
14
2