dva-nprogress

Nprogress plugin for dva.

Usage no npm install needed!

<script type="module">
  import dvaNprogress from 'https://cdn.skypack.dev/dva-nprogress';
</script>

README

dva-nprogress

NPM version NPM downloads

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

License

MIT