This package has been deprecated

Author message:

Deprecated in favour of @issimo/deep-state

@sebastbake/deep-state
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Deprecated in favour of issimoteam/deep-state

A simple state store. Performs a deep comparison before calling the callbacks.

size downloads npm GitHub

const state = State();

const cleanup = state.subscribe((prev, next) => {
  // stuff
});

state.value = { foo: "bar" }; // trigger callback
state.value = { foo: "bar" }; // nothing

Readme

Keywords

none

Package Sidebar

Install

npm i @sebastbake/deep-state

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

3.93 kB

Total Files

5

Last publish

Collaborators

  • sebastbake