1.0.6 • Published 5 years ago

smallorange-light-store v1.0.6

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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);
1.0.6

5 years ago

1.0.5

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago