Git Product home page Git Product logo

mickey's People

Contributors

bubkoo avatar vc2008man avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mickey's Issues

在model里写object.keys(obj).map()会出现编译错误.

在model里写object.keys(obj).map()会出现编译错误.

// 这样写不出错
const keys = Object.keys(logMap);
        logArr = keys.map(key => (
          { text: `[${key}]`,
            data: logMap[key],
          }
        ));
// 这样写不行

const logArr = Object.keys(logMap).map(key => (
          { text: `[${key}]`,
            data: logMap[key],
          }
       ));

Module build failed: TypeError: /Users/Lyn/work/pai-benchmark/src/models/evaluation/log.js: Cannot read property 'name' of undefined

Warning if call methods in effects without `yield`

Looking at the following error code:

* effect(username, { call }, { success, failed }) {
    const { data } = yield call(fetchUser, username)
    if (data) {
      success(data) // missing `yield`, should warning developer when dev
    } else {
      yield failed()
    }
}

Since missing yield would not throw any error, it just failed silently.
A good experience is to give a warning when dev.

去掉全局 actions

目前的实现方案中 connect 组件时不再需要传递第二个参数,而是使用 mickey 暴露的全局 actions,这样有点奇怪:

  1. actions 既然是模块导出就不应该是动态变化的
  2. 全局 actions 导致 mickey 不能多实例

目前想到可行的方案是包装一下 connect 方法

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.