redva-loading

1.1.3 • Public • Published

redva-loading

Auto loading plugin for redva. 👏 You don't need to write showLoading and hideLoading any more.


Install

$ npm install redva-loading --save

Usage

import createLoading from 'redva-loading';

const app = redva();
app.use(createLoading(opts));

Then we can access loading state from store.

opts

  • opts.namespace: property key on global state, type String, Default loading

See real project usage on dva-hackernews.

State Structure

loading: {
  global: false,
  models: {
    users: false,
    todos: false,
    ...
  },
}

License

MIT

Package Sidebar

Install

npm i redva-loading

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

9.49 kB

Total Files

4

Last publish

Collaborators

  • fishedee