Soon

Results 81 issues of Soon

effects这个词,给我的感觉更多是副作用,类似watch监听导致的watchEffect,或者是useEffect产生的副作用。如果watch特性上线,应该给effect换名的。 我的提议是把异步action放到actions,不知道判断一下返回值为Promise可不可以实现。

Pinia在这方面的处理是,只有 需要使用model的组件 mount时,才会创建对应的model,onInit才会触发。 如果使用较多的model,在根部一开始就创建,直接占用了较高的内存。 假设有10个Model,现在App一启动,10个onInit同时都会触发。 即用即创建,由于用户视口有限,同时在线的model的数量是很少的。 我的想法是getModel(userModel).state.name,可以替代userModel.state.name 在getModel、useModel 时,同步创建对应的store。

feature

```typescript //defineModel.ts modelStore.appendReducer( uniqueName, createReducer({ name: uniqueName, --- initialState: parseState(initialStateStr), +++ initialState: options.initialState, allowRefresh: !skipRefresh, }), ); ``` js里没有完美的深拷贝,reset这个不太应该从拷贝的角度考虑🤔 我感觉有immer的存在,初始的options.initialState完全不会改变, 或许和pinia一样,改为函数,这样也不需要再存一份旧state了 ```typescript state(){ return { a:1, b:2 } } ```

enhancement

Vue对复杂对象的处理是,重新赋值触发响应。类似Date的复杂对象,也可以做到这个地步?

### 版本 1.8.6 ### 转载链接 [http://localhost:8080/](http://localhost:8080) ### 重现步骤 ![2at8g.png](https://s1.328888.xyz/2022/04/23/2at8g.png) ![2aDwZ.jpg](https://s1.328888.xyz/2022/04/23/2aDwZ.jpg) ![2adBC.png](https://s1.328888.xyz/2022/04/23/2adBC.png) ![2a5I1.png](https://s1.328888.xyz/2022/04/23/2a5I1.png) ![2aWvt.jpg](https://s1.328888.xyz/2022/04/23/2aWvt.jpg) 先点开一个带mask的组件(select calendar这些),然后点击白色部分(非mask遮罩部分),会触发input框 ### 期望的结果是什么? 不会隔着层数触发input ### 实际的结果是什么? 触发了input

- [x] I have searched the [issues](https://github.com/ant-design/ant-design-mobile-rn/issues) of this repository and believe that this is not a duplicate. ### What problem does this feature solve? 这个方法将被废弃,总是报警告,希望修改一下 Console Warning EventEmitter.removeListener(' ANT_...

🎄 portal
PR welcome

**Describe the bug** A clear and concise description of what the bug is. I installed vitest V0.18.0,and it doesn`t work. **To Reproduce** Steps to reproduce the behavior on [the example...

bug

## Summary - auto set "mode" by NODE_ENV, remove the hardcoded config - extract "buildConfig" method ## Related issue (if exists) closes [#2280](https://github.com/web-infra-dev/rspack/issues/2280) ## Types of changes - [ ]...