This package has been deprecated

Author message:

Please use simple-light-store instead.

smallorange-light-store

1.0.6 • Public • Published

CircleCI

Sample

	const store = new Store();

	store.set({}, 'actionName');
	store.get() === store.s;
	const unsubscribe = store.subscribe(event: string /*optional*/, context: object /*optional*/, callback: function);
	const unsubscribe = store.subscribeOnce(event: string /*optional*/, context: object /*optional*/, callback: function);

	// async subscriptions are notified as soon all other subscriptions (not async) have been notified, useful to listen store on react components
	const unsubscribe = store.subscribeAsync(event: string /*optional*/, context: object /*optional*/, callback: function);
	const unsubscribe = store.subscribeAsyncOnce(event: string /*optional*/, context: object /*optional*/, callback: function);
	
	store.unsubscribe(event: string /*optional*/, context: object /*optional*/, callback: function);

Readme

Keywords

none

Package Sidebar

Install

npm i smallorange-light-store

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

51.8 kB

Total Files

10

Last publish

Collaborators

  • feliperohde