Open azu opened 4 years ago
import { shallowEqual } from "shallow-equal-object";
const onChange = (cb) => {
const detectChanges = () => {
if(!shallowEqual(currentState, getState()){
cb();
}
}
};
Maybe, onchange needs is related with specific framework. It will adaptor for XXX framework.
Missing onChange