How to use the dva-core/lib/utils.isFunction function in dva-core

To help you get started, we’ve selected a few dva-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Martian-in-Earth / dva-vue / packages / dva-vue / src / connect.js View on Github external
const pushBeforeCreate = (beforeCreate, item) => Array.isArray(beforeCreate)
  ? beforeCreate.concat(item)
  : isFunction(beforeCreate)
    ? [beforeCreate, item]
    : item
github dvajs / dva / packages / dva-react-router-3 / src / index.js View on Github external
function router(router) {
    invariant(
      isFunction(router),
      `[app.router] router should be function, but got ${typeof router}`,
    );
    app._router = router;
  }
github dvajs / dva / packages / dva-no-router / src / index.js View on Github external
function router(router) {
    invariant(
      isFunction(router),
      `[app.router] router should be function, but got ${typeof router}`,
    );
    app._router = router;
  }
github Martian-in-Earth / dva-vue / packages / dva-vue / src / index.js View on Github external
const router = router => {
    invariant(isFunction(router), `[app.router] router should be function, but got ${typeof router}`)
    Vue.use(VueRouter)
    app._router = router
  }
  const start = container => {
github Martian-in-Earth / dva-vue / packages / dva-vue / es / connect.js View on Github external
var pushBeforeCreate = function pushBeforeCreate(beforeCreate, item) {
  return Array.isArray(beforeCreate) ? beforeCreate.concat(item) : isFunction(beforeCreate) ? [beforeCreate, item] : item;
};
github Martian-in-Earth / dva-vue / packages / dva-vue / es / index.js View on Github external
var router = function router(_router) {
    invariant(isFunction(_router), '[app.router] router should be function, but got ' + (typeof _router === 'undefined' ? 'undefined' : _typeof(_router)));
    Vue.use(VueRouter);
    app._router = _router;
  };
  var start = function start(container) {

dva-core

The core lightweight library for dva, based on redux and redux-saga.

MIT
Latest version published 4 years ago

Package Health Score

58 / 100
Full package analysis