dva-nprogress
v0.0.4
Published
Nprogress plugin for dva.
Downloads
1
Readme
dva-nprogress
Nprogress plugin for dva. :clap:
Install
$ npm install dva-nprogress --save
Usage
import 'nprogress/nprogress.css'
import nprogressDva from 'dva-nprogress';
const app = dva();
app.use(nprogressDva());
Then we can access loading state from store.
opts
opts.types
: property key on action type to animation, type Array, Default['@@router/CALL_HISTORY_METHOD']