dva-nprogress

0.0.4 • Public • Published

dva-nprogress

NPM version NPM downloads

Nprogress plugin for dva. 👏


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']

License

MIT

Package Sidebar

Install

npm i dva-nprogress

Weekly Downloads

0

Version

0.0.4

License

MIT

Last publish

Collaborators

  • ddotjs