redux-zero
Advanced tools
Comparing version 4.13.6 to 4.14.0
# Changelog | ||
### 4.14.0 | ||
- Added ownprops as optional argument to the actions creator | ||
### 4.13.6 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "redux-zero", | ||
"version": "4.13.6", | ||
"version": "4.14.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/redux-zero.js", |
@@ -59,4 +59,4 @@ 'use strict'; | ||
function bindActions(actions, store) { | ||
actions = typeof actions === "function" ? actions(store) : actions; | ||
function bindActions(actions, store, ownProps) { | ||
actions = typeof actions === "function" ? actions(store, ownProps) : actions; | ||
var bound = {}; | ||
@@ -63,0 +63,0 @@ var _loop_1 = function (name_1) { |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],n):n(t["redux-zero"]={},t.preact)}(this,function(t,n){"use strict";function e(t,n){function e(){this.constructor=t}u(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function o(t,n){for(var e in t)if(t[e]!==n[e])return!1;for(var e in n)if(!(e in t))return!1;return!0}function r(t,n){if(null!=n){if(n.then)return n.then(t.setState);t.setState(n)}}function i(t,n){t="function"==typeof t?t(n):t;var e={};for(var o in t)!function(o){e[o]=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var u=t[o];return"function"==typeof n.middleware?n.middleware(n,u,e):r(n,u.apply(void 0,[n.getState()].concat(e)))}}(o);return e}var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])},p=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++){n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state=n.getProps(),n.actions=n.getActions(),n.update=function(){var t=n.getProps();o(t,n.state)||n.setState(t)},n}return e(n,t),n.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},n.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},n.prototype.getProps=function(){var t=this.props.mapToProps,n=this.context.store&&this.context.store.getState()||{};return t?t(n,this.props):n},n.prototype.getActions=function(){return i(this.props.actions,this.context.store)},n.prototype.render=function(t,n,e){var o=t.children,r=e.store;return o[0](p({store:r},n,this.actions))},n}(n.Component),c=s,f=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getChildContext=function(){return{store:this.props.store}},n.prototype.render=function(){return this.props.children[0]},n}(n.Component);t.connect=function(t,o){return void 0===o&&(o={}),function(r){return function(i){function u(){return null!==i&&i.apply(this,arguments)||this}return e(u,i),u.prototype.render=function(){var e=this.props;return n.h(c,p({},e,{mapToProps:t,actions:o}),function(t){return n.h(r,p({},t,e))})},u}(n.Component)}},t.Provider=f,t.Connect=s,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("preact")):"function"==typeof define&&define.amd?define(["exports","preact"],n):n(t["redux-zero"]={},t.preact)}(this,function(t,n){"use strict";function e(t,n){function e(){this.constructor=t}u(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function o(t,n){for(var e in t)if(t[e]!==n[e])return!1;for(var e in n)if(!(e in t))return!1;return!0}function r(t,n){if(null!=n){if(n.then)return n.then(t.setState);t.setState(n)}}function i(t,n,e){t="function"==typeof t?t(n,e):t;var o={};for(var i in t)!function(e){o[e]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var u=t[e];return"function"==typeof n.middleware?n.middleware(n,u,o):r(n,u.apply(void 0,[n.getState()].concat(o)))}}(i);return o}var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])},p=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++){n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state=n.getProps(),n.actions=n.getActions(),n.update=function(){var t=n.getProps();o(t,n.state)||n.setState(t)},n}return e(n,t),n.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},n.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},n.prototype.getProps=function(){var t=this.props.mapToProps,n=this.context.store&&this.context.store.getState()||{};return t?t(n,this.props):n},n.prototype.getActions=function(){return i(this.props.actions,this.context.store)},n.prototype.render=function(t,n,e){var o=t.children,r=e.store;return o[0](p({store:r},n,this.actions))},n}(n.Component),c=s,f=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.getChildContext=function(){return{store:this.props.store}},n.prototype.render=function(){return this.props.children[0]},n}(n.Component);t.connect=function(t,o){return void 0===o&&(o={}),function(r){return function(i){function u(){return null!==i&&i.apply(this,arguments)||this}return e(u,i),u.prototype.render=function(){var e=this.props;return n.h(c,p({},e,{mapToProps:t,actions:o}),function(t){return n.h(r,p({},t,e))})},u}(n.Component)}},t.Provider=f,t.Connect=s,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -66,4 +66,4 @@ 'use strict'; | ||
function bindActions(actions, store) { | ||
actions = typeof actions === "function" ? actions(store) : actions; | ||
function bindActions(actions, store, ownProps) { | ||
actions = typeof actions === "function" ? actions(store, ownProps) : actions; | ||
var bound = {}; | ||
@@ -116,3 +116,3 @@ var _loop_1 = function (name_1) { | ||
var actions = this.props.actions; | ||
return bindActions(actions, this.context.store); | ||
return bindActions(actions, this.context.store, this.props); | ||
}; | ||
@@ -119,0 +119,0 @@ Connect.prototype.render = function () { |
@@ -1,1 +0,1 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n(t["redux-zero"]={},t.React)}(this,function(t,n){"use strict";function e(t,n){function e(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function o(t,n){for(var e in t)if(t[e]!==n[e])return!1;for(var e in n)if(!(e in t))return!1;return!0}function r(t,n,e){return"object"==typeof t?null:new Error("Invalid prop "+n+" supplied to "+e)}function i(t,n){if(null!=n){if(n.then)return n.then(t.setState);t.setState(n)}}function p(t,n){t="function"==typeof t?t(n):t;var e={};for(var o in t)!function(o){e[o]=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var p=t[o];return"function"==typeof n.middleware?n.middleware(n,p,e):i(n,p.apply(void 0,[n.getState()].concat(e)))}}(o);return e}var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])},u=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++){n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state=n.getProps(),n.actions=n.getActions(),n.update=function(){var t=n.getProps();o(t,n.state)||n.setState(t)},n}return e(n,t),n.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},n.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},n.prototype.getProps=function(){var t=this.props.mapToProps,n=this.context.store&&this.context.store.getState()||{};return t?t(n,this.props):n},n.prototype.getActions=function(){return p(this.props.actions,this.context.store)},n.prototype.render=function(){return this.props.children(u({store:this.context.store},this.state,this.actions))},n.contextTypes={store:r},n}(n.Component),f=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return e(o,t),o.prototype.getChildContext=function(){return{store:this.props.store}},o.prototype.render=function(){var t=this.props.children;return n.Children.only(t)},o.childContextTypes={store:r},o}(n.Component);t.connect=function(t,o){return void 0===o&&(o={}),function(r){return function(i){function p(){return null!==i&&i.apply(this,arguments)||this}return e(p,i),p.prototype.render=function(){var e=this.props;return n.createElement(c,u({},e,{mapToProps:t,actions:o}),function(t){return n.createElement(r,u({},t,e))})},p}(n.Component)}},t.Provider=f,t.Connect=c,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n(t["redux-zero"]={},t.React)}(this,function(t,n){"use strict";function e(t,n){function e(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}function o(t,n){for(var e in t)if(t[e]!==n[e])return!1;for(var e in n)if(!(e in t))return!1;return!0}function r(t,n,e){return"object"==typeof t?null:new Error("Invalid prop "+n+" supplied to "+e)}function i(t,n){if(null!=n){if(n.then)return n.then(t.setState);t.setState(n)}}function p(t,n,e){t="function"==typeof t?t(n,e):t;var o={};for(var r in t)!function(e){o[e]=function(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var p=t[e];return"function"==typeof n.middleware?n.middleware(n,p,o):i(n,p.apply(void 0,[n.getState()].concat(o)))}}(r);return o}var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])},u=Object.assign||function(t){for(var n,e=1,o=arguments.length;e<o;e++){n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},c=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state=n.getProps(),n.actions=n.getActions(),n.update=function(){var t=n.getProps();o(t,n.state)||n.setState(t)},n}return e(n,t),n.prototype.componentWillMount=function(){this.unsubscribe=this.context.store.subscribe(this.update)},n.prototype.componentWillUnmount=function(){this.unsubscribe(this.update)},n.prototype.getProps=function(){var t=this.props.mapToProps,n=this.context.store&&this.context.store.getState()||{};return t?t(n,this.props):n},n.prototype.getActions=function(){return p(this.props.actions,this.context.store,this.props)},n.prototype.render=function(){return this.props.children(u({store:this.context.store},this.state,this.actions))},n.contextTypes={store:r},n}(n.Component),f=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return e(o,t),o.prototype.getChildContext=function(){return{store:this.props.store}},o.prototype.render=function(){var t=this.props.children;return n.Children.only(t)},o.childContextTypes={store:r},o}(n.Component);t.connect=function(t,o){return void 0===o&&(o={}),function(r){return function(i){function p(){return null!==i&&i.apply(this,arguments)||this}return e(p,i),p.prototype.render=function(){var e=this.props;return n.createElement(c,u({},e,{mapToProps:t,actions:o}),function(t){return n.createElement(r,u({},t,e))})},p}(n.Component)}},t.Provider=f,t.Connect=c,Object.defineProperty(t,"__esModule",{value:!0})}); |
@@ -215,2 +215,29 @@ <h1 align="center"> | ||
### Access props in actions | ||
The initial component props are passed to the actions creator. | ||
```js | ||
const Component = ({ count, increment }) => ( | ||
<h1 onClick={() => increment()}>{count}</h1> | ||
); | ||
const mapToProps = ({ count }) => ({ count }); | ||
const actions = (store, ownProps) => ({ | ||
increment: state => ({ count: state.count + ownProps.value }) | ||
}); | ||
const ConnectedComponent = connect( | ||
mapToProps, | ||
actions | ||
)(Component); | ||
const App = () => ( | ||
<Provider store={store}> | ||
<ConnectedComponent value={10} /> | ||
</Provider> | ||
); | ||
``` | ||
### Combining actions | ||
@@ -217,0 +244,0 @@ |
@@ -76,4 +76,4 @@ 'use strict'; | ||
function bindActions(actions, store) { | ||
actions = typeof actions === "function" ? actions(store) : actions; | ||
function bindActions(actions, store, ownProps) { | ||
actions = typeof actions === "function" ? actions(store, ownProps) : actions; | ||
var bound = {}; | ||
@@ -80,0 +80,0 @@ var _loop_1 = function (name_1) { |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";function e(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function n(t,n){return t!==n||!(!t||"object"!=typeof t)&&!e(t,n)}function r(t,e){var r={},o=!1;for(var f in t){var c=t[f];n(e[f],c)&&(o=!0,"object"==typeof c&&"function"!=typeof c.getMonth?r[f]=c.constructor===Array?c.slice(0):i({},c):r[f]=c)}return{diff:r,changed:o}}function o(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}function f(t,e){t="function"==typeof t?t(e):t;var n={};for(var r in t)!function(r){n[r]=function(){for(var n=[],f=0;f<arguments.length;f++)n[f]=arguments[f];var i=t[r];return"function"==typeof e.middleware?e.middleware(e,i,n):o(e,i.apply(void 0,[e.getState()].concat(n)))}}(r);return n}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};t.connect=function(t,e,n){function o(){var o=r(n(e.getState()),t.get()),f=o.diff;o.changed&&t.set(f)}o(),t.on("destroy",e.subscribe(o))},t.getActions=function(t,e){return f(e,t)},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";function e(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function n(t,n){return t!==n||!(!t||"object"!=typeof t)&&!e(t,n)}function r(t,e){var r={},o=!1;for(var f in t){var c=t[f];n(e[f],c)&&(o=!0,"object"==typeof c&&"function"!=typeof c.getMonth?r[f]=c.constructor===Array?c.slice(0):i({},c):r[f]=c)}return{diff:r,changed:o}}function o(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}function f(t,e,n){t="function"==typeof t?t(e,n):t;var r={};for(var f in t)!function(n){r[n]=function(){for(var r=[],f=0;f<arguments.length;f++)r[f]=arguments[f];var i=t[n];return"function"==typeof e.middleware?e.middleware(e,i,r):o(e,i.apply(void 0,[e.getState()].concat(r)))}}(f);return r}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};t.connect=function(t,e,n){function o(){var o=r(n(e.getState()),t.get()),f=o.diff;o.changed&&t.set(f)}o(),t.on("destroy",e.subscribe(o))},t.getActions=function(t,e){return f(e,t)},Object.defineProperty(t,"__esModule",{value:!0})}); |
import Store from "../interfaces/Store"; | ||
export default function bindActions(actions: Function, store: Store): any; | ||
export default function bindActions(actions: Function, store: Store, ownProps?: object): any; |
@@ -13,4 +13,4 @@ 'use strict'; | ||
function bindActions(actions, store) { | ||
actions = typeof actions === "function" ? actions(store) : actions; | ||
function bindActions(actions, store, ownProps) { | ||
actions = typeof actions === "function" ? actions(store, ownProps) : actions; | ||
var bound = {}; | ||
@@ -17,0 +17,0 @@ var _loop_1 = function (name_1) { |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e["redux-zero"]={})}(this,function(e){"use strict";function t(e,t){if(null!=t){if(t.then)return t.then(e.setState);e.setState(t)}}var n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};e.bindActions=function(e,n){e="function"==typeof e?e(n):e;var o={};for(var r in e)!function(r){o[r]=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var f=e[r];return"function"==typeof n.middleware?n.middleware(n,f,o):t(n,f.apply(void 0,[n.getState()].concat(o)))}}(r);return o},e.combineActions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.reduce(function(e,o){return n({},e,"function"==typeof o?o.apply(void 0,t):o)},{})}},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e["redux-zero"]={})}(this,function(e){"use strict";function t(e,t){if(null!=t){if(t.then)return t.then(e.setState);e.setState(t)}}var n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};e.bindActions=function(e,n,o){e="function"==typeof e?e(n,o):e;var r={};for(var i in e)!function(o){r[o]=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var f=e[o];return"function"==typeof n.middleware?n.middleware(n,f,r):t(n,f.apply(void 0,[n.getState()].concat(r)))}}(i);return r},e.combineActions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.reduce(function(e,o){return n({},e,"function"==typeof o?o.apply(void 0,t):o)},{})}},Object.defineProperty(e,"__esModule",{value:!0})}); |
@@ -76,4 +76,4 @@ 'use strict'; | ||
function bindActions(actions, store) { | ||
actions = typeof actions === "function" ? actions(store) : actions; | ||
function bindActions(actions, store, ownProps) { | ||
actions = typeof actions === "function" ? actions(store, ownProps) : actions; | ||
var bound = {}; | ||
@@ -80,0 +80,0 @@ var _loop_1 = function (name_1) { |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";function e(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function n(t,n){return t!==n||!(!t||"object"!=typeof t)&&!e(t,n)}function r(t,e){var r={},o=!1;for(var f in t){var c=t[f];n(e[f],c)&&(o=!0,"object"==typeof c&&"function"!=typeof c.getMonth?r[f]=c.constructor===Array?c.slice(0):i({},c):r[f]=c)}return{diff:r,changed:o}}function o(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}function f(t,e){t="function"==typeof t?t(e):t;var n={};for(var r in t)!function(r){n[r]=function(){for(var n=[],f=0;f<arguments.length;f++)n[f]=arguments[f];var i=t[r];return"function"==typeof e.middleware?e.middleware(e,i,n):o(e,i.apply(void 0,[e.getState()].concat(n)))}}(r);return n}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};t.connect=function(t,e,n,o){function i(t,e){for(var n in t)e[n]=t[n]}function c(){var o=r(n(e.getState()),n(t)),f=o.diff;o.changed&&i(f,t)}c();var u=t.beforeDestroy,a=e.subscribe(c);t.beforeDestroy=function(){a(),u()},i(f(o,e),t)},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t["redux-zero"]={})}(this,function(t){"use strict";function e(t,e){for(var n in t)if(t[n]!==e[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function n(t,n){return t!==n||!(!t||"object"!=typeof t)&&!e(t,n)}function r(t,e){var r={},o=!1;for(var f in t){var c=t[f];n(e[f],c)&&(o=!0,"object"==typeof c&&"function"!=typeof c.getMonth?r[f]=c.constructor===Array?c.slice(0):i({},c):r[f]=c)}return{diff:r,changed:o}}function o(t,e){if(null!=e){if(e.then)return e.then(t.setState);t.setState(e)}}function f(t,e,n){t="function"==typeof t?t(e,n):t;var r={};for(var f in t)!function(n){r[n]=function(){for(var r=[],f=0;f<arguments.length;f++)r[f]=arguments[f];var i=t[n];return"function"==typeof e.middleware?e.middleware(e,i,r):o(e,i.apply(void 0,[e.getState()].concat(r)))}}(f);return r}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t};t.connect=function(t,e,n,o){function i(t,e){for(var n in t)e[n]=t[n]}function c(){var o=r(n(e.getState()),n(t)),f=o.diff;o.changed&&i(f,t)}c();var u=t.beforeDestroy,a=e.subscribe(c);t.beforeDestroy=function(){a(),u()},i(f(o,e),t)},Object.defineProperty(t,"__esModule",{value:!0})}); |
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
65353
390
45