lulusir / clean-js

一个包含状态库、IOC容器的辅助库,帮助你在在react和vue中管理状态, 简单, 轻量, 方便测试;
https://lulusir.github.io/clean-js
26 stars 0 forks source link

Todo #1

Closed lulusir closed 2 years ago

lulusir commented 2 years ago
  1. 需要一个watch功能,订阅state变化,获取旧值和新值 ` watch(callback:(old, new) => void) => unWatch

subscribe 增加selector参数 `