Yunfei He
Yunfei He
@Eward-Wang 对象池的目的应该是为了防止内存抖动,不断创建新的对象又不复用,会不断导致gc的发生,应该从程序内存的使用角度来比较俩种方法
could we use `WeakMap` to store data? I know now recoil use string as key, which isn't supported by WeakMap, but what if we use symbol. we automatically get the...
https://github.com/iheyunfei/vite-bug-report-4298 I create a reproduction repo. I both using create-react-app and vite to reproduce the problem successfully. So, I guess this is the problem of upstream `react-refresh`, not vite. And...
damn. ~~It looks like if you give function component a name, then both c-r-a and vite example works.~~ > // Anonymous direct exports like export default function() {} > //...
How is this going? In React17, throwing `Promise` during rendering becomes special , `ErrorBoundary` can't catch throwing `Promise` but anything else! This forbid us to implement our own version of...
We would like to know if there are some works that the community could contribute.
I wonder, if https://github.com/servo/string-cache/pull/268 is merged, whether we should still investigate a better string type for swc?
> @hyf0 I will try to work for this Thanks. I just had words with @Brooooooklyn. He's also welcome for anyone to implement https://github.com/napi-rs/napi-rs/issues/1372. So I will encourage you do...
虽然可能有点晚,不过,`getDerivedStateFromProp` 其实是可以拿到 this 的,只是需要在构造时 `state = { self: this , ...otherState}`
Thanks. We haven't got the chance to think about this. So I'm gonna on hold this PR for now and will review it in the future.