Cong Zhang
Cong Zhang
### What problem does this feature solve? Since we want to remove `lib` and focus on ESM only, it is better remove `es` dir. Then we can: ``` import Button...
Discuss what we will never do in this package here: ### Apis to meet business Such as normalize. ### What `redux` / `mobx` / `recoil` / `swr` does ***Just use...
## 现象 在 [升级 `region-core`](https://github.com/regionjs/region-core/compare/v11.4.3...v11.4.4) 的时候,我发现一个 `tsconfig.json` 中 `allowSyntheticDefaultImports` 相关的问题。 升级前,`region-core` 有一些 UT,但是没有覆盖到这一行:https://github.com/regionjs/region-core/blob/master/src/createMappedRegion/index.ts#L188 ```typescript // 这是一个 cjs import * as jsonStableStringify from 'json-stable-stringify'; jsonStableStringify(key); ``` 当覆盖到这一行时,`skr test` 告诉我 `TypeError: jsonStableStringify...
[[中文版模板 / Chinese template](https://github.com/ant-design/ant-design/blob/master/.github/PULL_REQUEST_TEMPLATE/pr_cn.md)] ### 🤔 This is a ... - [ ] New feature - [ ] Bug fix - [x] Site / documentation update - [ ] Demo...
`region-core` 从设计之初就只考虑储存全局数据,这意味着在某些场景下强行使用 `region-core` 并不是一个好的做法,为了更好的使用 `region-core` 开发你的业务,你需要意识到哪些需求是 __不适合__ 使用 `region-core` 来实现的。 ### 在页面加载时使用 HTTP 获取数据,储存到 region 中,并在大量的子组件中使用同一份数据 非常推荐使用 `region-core` 完成。 ### 控制一些全局的变量,比如某个弹框的开关(弹框仅会出现一个),或者当前处于 active 的某个对象(active 对象仅有一个) 推荐使用 `region-core` 完成,你可以自由控制相关的 `region` 而不需要通过 Provider...
我对这个 rfcs 的理解好像和你的实现不同 在你的实现,每次 `Context.Provider` `render` 时,都会给 `Context` 新的 `write` 函数,如果多 `Provider` 怎么办?如果 `write` 修改所有的 `Provider` 的 `value` 就失去了 `Provider` 分形的意义,如果只修改最后一个被 `render` 的 `Provider` 明显不符合开发者的预期。 react `useContext` 在 `Context.Provider` 未给出的时候,会回到...
### Reproduction link [](https://codesandbox.io/p/sandbox/ji-ben-antd-5-12-8-forked-twg5pn?file=%2Fdemo.tsx%3A10%2C4) ### Steps to reproduce 用 Chrome/Safari 打开此 sandbox,调整缩放,放大至 110%,Tabs 会发生闪烁 https://github.com/ant-design/ant-design/assets/7264444/b23ba8be-ad9d-4398-b297-d69ace22aa02 ### What is expected? 无闪烁 ### What is actually happening? 闪烁 | Environment...
重现 Case: ```javascript const getInitialValues = useCallback( () => template, [template] ); ``` `@reskript/no-useless-memo-hooks` 提示 `Hook useCallback's should be removed` 但实际上,我希望仅当 `template` 的值发生变更时使用新的 `callback`,而当 `template` 的值没有变化时不更新 `callback` 的引用。在这种情况下,`useCallback` 是需要的。