Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return function (...args) {
this.$$reduxDiff = diff.bind(this);
if(this.$store) {
let connectState = ()=>{
let newState = this.$store.getState();
let lastState = this.$$storeLastState;
let data = mapState(this.mapState, newState, lastState, this);
if (data !== null) {
// 有效state
this.$$storeLastState = data;
let diffData = this.$$reduxDiff(data);
this.setData(diffData);
}
}
this.$unsubscribe = this.$store.subscribe((...args) => {
// Object updated && page is showing
if(this.$$isCurrentPage) {