1.0.4 • Published 11 months ago

chista-state-manager v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

ChistaData State Manager

This is a simple state manager based on rxjs.

Useage

Create

/* Creates a atomic store based on BehaviorSubject from 'rxjs' */
const count$ = atom(0);

Subscribe

/* Subscribe to the atomic store and listen for events */
count$.subscribe(value => {
    // Do application logic whenever the store changes
    document.getElementById("counter").innerText = `Count : ${value}`;
});

Get value

count$.get()

Set value

// count$.set(<new-value>);
count$.set(count$.get() + 1);

Reference Links

Get Started

Install dependencies

pnpm install

Build application

pnpm build 

Testing

pnpm test 

Rules

TBD

Get started

TBD

Who uses it?

TBD

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

12 months ago

1.0.0

12 months ago