react-fiber-keep-alive icon indicating copy to clipboard operation
react-fiber-keep-alive copied to clipboard

A component that maintains component state and avoids repeated re-rendering.

Results 4 react-fiber-keep-alive issues
Sort by recently updated
recently updated
newest added

![image](https://github.com/shenjunru/react-fiber-keep-alive/assets/19850188/ea8a55be-cfce-4b56-b3f4-bb7546c1b037) index-158aa048.js:40 TypeError: Cannot read properties of null (reading '1') at useGlobalCache (index-158aa048.js:135:11474) at useStyleRegister (index-158aa048.js:136:1933) at index-158aa048.js:176:6380 at index-158aa048.js:176:8278 at InternalSelect (index-158aa048.js:329:11394) at Xh (index-158aa048.js:38:20793) at Zi (index-158aa048.js:40:1612) at...

demo 地址:https://stackblitz.com/edit/react-ts-ve5dk5?file=index.tsx,App.tsx,style.css 。 这个 demo 放到 stackblitz 里的时候刷新界面点击【切换可见状态】按钮是正常的。但是在 create-react-app 新建的项目中会产生问题。 问题复现: 1. 使用 create-react-app 创建一个新的项目,react 版本为 18+,将 demo 代码替换到新建项目中。 2. 运行后,点击【切换可见状态】按钮设置 visible 状态,偶尔会出现状态设置失效的情况(偶发性很高)。 3. 刷新界面后,再次点击【切换可见状态】按钮,visible 设置失效。而且无法恢复,尝试重新运行也是有概率无法恢复。 ![2023-01-03 18 27 30](https://user-images.githubusercontent.com/38751863/210340725-5adba4cb-67f4-4ab6-8187-dffa63a63aa8.gif)