1.4.1 • Published 6 years ago

nocms-stores v1.4.1

Weekly downloads
15
License
ISC
Repository
github
Last release
6 years ago

NoCMS Stores

Stores for NoCMS forms.

semantic-release Dependency Status devDependencies

Installation

Install nocms-stores from NPM and include it in your own React build and minification process (using Browserify, Webpack, etc).

npm install nocms-stores --save

Usage

import stores from 'nocms-stores';

stores.createStore(props.store, props.initialState, this.handleStoreChange);

API

createStore(name, value, func)

Create a store with the given name and/or default value and/or callback function

remove(name, func)

Delete store and optionally unsubscribe from the given function

getStore(name)

Returns the store with the given name

subscribe(name, func)

Listen to events on the given store by calling the function

unsubscribe(name, func)

Stop listen to events on the given store

update(name, obj)

Update store

Commit message format and publishing

This repository is published using semantic-release, with the default AngularJS Commit Message Conventions.

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago