mickeyjsx / mickey Goto Github PK
View Code? Open in Web Editor NEW🤠 Lightweight front-end framework for creating React and Redux based app painlessly.
License: MIT License
🤠 Lightweight front-end framework for creating React and Redux based app painlessly.
License: MIT License
在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
// run sagas
sagas.forEach(store.runSaga);
var render = function render(_component, _container, _renderOptions) {
var _ref = _renderOptions || renderOptions,
beforeRender = _ref.beforeRender,
afterRender = _ref.afterRender;
这里报错了
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.
没有使用 babel-plugin-mickey-model-loader 时调用 app.load 会报错,可以在 Mickey 的实例中先放一个“伪” load
方法,被调用时提示需要先安装配置对应的插件。
import { push } from 'react-router-redux'
在 mickey 内部管理 action type 字符串时使用 /
作为分割符号,所以当初设计的时候将 namespace
也规定用 /
,与大家常识性的 namespace
用 .
作为分隔符有理解上的困难。
目前的实现方案中 connect
组件时不再需要传递第二个参数,而是使用 mickey 暴露的全局 actions
,这样有点奇怪:
actions
既然是模块导出就不应该是动态变化的actions
导致 mickey 不能多实例目前想到可行的方案是包装一下 connect
方法
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.