README
issimoteam/deep-state
Deprecated in favour ofA simple state store. Performs a deep comparison before calling the callbacks.
const state = State();
const cleanup = state.subscribe((prev, next) => {
// stuff
});
state.value = { foo: "bar" }; // trigger callback
state.value = { foo: "bar" }; // nothing