qianmiopen / iflux2 Goto Github PK
View Code? Open in Web Editor NEWReactive state container (based on immutable) for React or ReactNative, inspired by mapreduce.
License: BSD 3-Clause "New" or "Revised" License
Reactive state container (based on immutable) for React or ReactNative, inspired by mapreduce.
License: BSD 3-Clause "New" or "Revised" License
dql的场景比较特殊,要随着组件的调用返回多个ql的实例
目前导致bug的原因是dql恰好出现在static defaultProps中这是静态的属性,只初始化一次导致所有的
dql共享了一个ql,导致计算的结果的错误
fixed:
很想用ts很健壮的重构我们现在的代码
undefined is not an object ('React.PropTypes.object')
ReactNative 0.51.0
store-provider.js && relax.js
import PropTypes from 'prop-types';
PropTypes.object
@action
装饰的函数的函数名无意义,
是否可以直接使用改函数的函数名作为@action的参数
before
@Action('start')
increment(state) {
return state.update('time', time => time + 1)
}
after
@Action
start(state) {
return state.update('time', time => time + 1)
}
Array应该是同类型数据的集合,
QL函数的Array内应该都是immutable的查询路径
callback个人感觉放在Array之外比较合适
before
// QL计算的结果值是 “iflux2南京"
const ifluxQL = QL('ifluxQL', [
'name',
['address', 'city'],
(name, city) => `${name}${city}`
])
after
// QL计算的结果值是 “iflux2南京"
const ifluxQL = QL('ifluxQL', [
'name',
['address', 'city']
],(name, city) => `${name}${city}`)
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.