modernx-loading
v1.3.0
Published
Auto loading data binding plugin for modernx.
Downloads
405
Maintainers
Readme
modernx-loading
Auto loading data binding plugin for modernx. :clap: You don't need to write showLoading and hideLoading any more.
Install
$ npm install modernx-loading --saveUsage
import createLoading from 'modernx-loading';
const app = modernx();
app.use(createLoading(opts));Then we can access loading state from store.
opts
opts.namespace: property key on global state, type String, Defaultloading
See real project usage on modernx-hackernews.
State Structure
loading: {
global: false,
models: {
users: false,
todos: false,
...
},
}