Git Product home page Git Product logo

iflux2's People

Contributors

dr2009 avatar hufeng 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iflux2's Issues

QL函数语法

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}`)

React.PropTypes.object

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装饰的函数的函数名无意义,
是否可以直接使用改函数的函数名作为@action的参数

before

@Action('start')
increment(state) {
    return state.update('time', time => time + 1)
}

after

@Action
start(state) {
    return state.update('time', time => time + 1)
}

dql bug

dql的场景比较特殊,要随着组件的调用返回多个ql的实例

目前导致bug的原因是dql恰好出现在static defaultProps中这是静态的属性,只初始化一次导致所有的
dql共享了一个ql,导致计算的结果的错误

fixed:

  • 先升级iflux2的基础环境比如jest,babel
  • 补充场景化的单元测试
  • dql不直接返回ql,而是返回解析后的ql需要的lang语法
  • 跑通所有的单元测试

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.