1.1.3 • Published 6 years ago

redva-loading v1.1.3

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

redva-loading

Auto loading plugin for redva. :clap: 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

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago