react-activation icon indicating copy to clipboard operation
react-activation copied to clipboard

Hack <KeepAlive /> for React

Results 69 react-activation issues
Sort by recently updated
recently updated
newest added

live demo: https://stackblitz.com/edit/vitejs-vite-k7eq5s?file=src/App.tsx

keepalive组件包裹了一个A组件,A组件可以渲染B组件或者C组件,在切换渲染的时候B、C会有一个输入框,切换状态时输入框的输入状态会丢失。但是做路由切换的时候、输入状态不会被清空。请问大佬们,这个问题该怎么解决啊? ![image](https://user-images.githubusercontent.com/53033515/183092278-01048114-5ef6-48cd-92cd-a785c46be219.png) ![image](https://user-images.githubusercontent.com/53033515/183092373-ae08b206-60e1-43e2-b64f-f5ffb50ee97b.png) ![image](https://user-images.githubusercontent.com/53033515/183092434-528ea519-c7b0-4e3c-8f24-c9bd840f18c4.png) ![image](https://user-images.githubusercontent.com/53033515/183092546-77def612-a63d-4b0e-abba-bb6e08dbe196.png)

"react-router": "6.3.0", "react-router-dom": "6.3.0",

请问有和react-routerV6配合使用的demo吗

对 iframe 标签进行的 dom 移位操作一律会引起刷新,但 keep-alive 功能必须进行 dom 移位 此问题暂未寻到修正方式,暂不修复,请使用者注意

wontfix

不是很明白为什么这里要判断值不是undefined,如果将context初始值设为undefined会报错 https://github.com/CJY0208/react-activation/blob/4fb793fd7de50af8e7220503d243c116bb7be241/src/core/Bridge/Context/ConsumerWrapper.js#L11-L17

开发环境: "react": "^17.0.2", "react-activation": "^0.10.2", "react-dom": "^17.0.2", "react-error-boundary": "^3.1.4", "react-i18next": "^11.16.9", "react-router": "^5.2.1", "react-router-dom": "^5.2.0", "react-scripts": "5.0.1",

想在vite里面使用,请问需要怎么配置呢