fwh1990

Results 188 comments of fwh1990

store创建成功后,每个模型总是能接收到onStoreCreated事件(已完成) ```typescript class TestModel extends Model { protected onStoreCreated(/*store: Store*/) { console.log(this.data); xxxAction(); } } ``` 接着内部继续做persist的操作,也许应该再映射一个`onPersistDone()`的事件? 有什么想法吗?比如取名字,或者触发时机

我是否应该把 onStoreCreated 的事件推迟到 persist 操作完成后再触发?这样只需要记住一个事件名,而且数据会比较安全。而且对于开发者来说,并不关心恢复的过程,要的只是最后的结果

已升级8.2.1,写法不变 ```typescript class TestModel extends Model { protected onStoreCreated(/*store: Store*/) { console.log(this.data); xxxAction(); } } ```

The inline fragment also can use `directives`, I'm working on it now. ```graphql hero { ... on Character @include(if: $withDetails) { name } } ```

Even fragment ```graphql query Block { test: { ...userFragment @include(if: true) } } fragment userFragment on User { id } ```

最近咋没动静了?共勉:https://github.com/redux-model/redux-model

更倾向于增加一个 defaultColor 的配置

一方面是为了与小程序/RN中的表现一致,另一方面是因为内联样式和文字放在一起时对不齐,需要用flex对齐。如果能解决对齐问题,用`inline-block`也是没问题的

```bash # 项目内安装 npm install flutter-iconfont-cli --save-dev # 或者全局安装 npm install flutter-iconfont-cli -g ``` 安装完才能使用,祝您生活愉快