Skip to content

release 1.2.1

Compare
Choose a tag to compare
@hufeng hufeng released this 04 Oct 12:34
· 24 commits to master since this release

RL = reactive language

有时候我们的代码的flow不能单纯的围绕着页面触发的事件来设计,
因为可能出现多个页面的事件对于的可能只是一件事情和后端的数据同步
为了更简单的实现这种反应式的设计,我们设计实现了RL,和QL的语法类似

const helloRL = RL('helloRL', [
  'hello', //依赖的数据路径或者QL可以是多个,和QL类似
   
  (hello) => {
    //当数据发生变化的时候会触发
    webapi.syncData();
   }
])
class AppStore extends Store {
  bindRx() {
     return {helloRL}
  }
}