set-state-compare
Version:
setState for React that compares with the current state and only sets the state if changed.
12 lines • 757 B
TypeScript
import { anythingDifferent } from "./diff-utils.js";
import { arrayDifferent } from "./diff-utils.js";
import { arrayReferenceDifferent } from "./diff-utils.js";
import { isSimpleObject } from "./diff-utils.js";
import { referenceDifferent } from "./diff-utils.js";
import shouldComponentUpdate from "./should-component-update.js";
import { simpleObjectDifferent } from "./diff-utils.js";
import { simpleObjectValuesDifferent } from "./diff-utils.js";
import Shape from "./shape.js";
import setState from "./set-state.js";
export { anythingDifferent, arrayDifferent, arrayReferenceDifferent, isSimpleObject, referenceDifferent, shouldComponentUpdate, simpleObjectDifferent, simpleObjectValuesDifferent, Shape, setState };
//# sourceMappingURL=index.d.ts.map