{"repo":"finedaybreak/keepalive-for-react","free":true,"listed":false,"github":"https://github.com/finedaybreak/keepalive-for-react","clone":"git clone https://github.com/finedaybreak/keepalive-for-react.git","description":"React KeepAlive is a component that can cache the state of the component and reuse it when needed.","language":"TypeScript","stars":337,"topics":["react-keepalive","react","keepalive"],"license":"MIT","category":"ui-components","readme_excerpt":"KeepAlive for React A React KeepAlive component like keep-alive in vue 中文 English [![][discord-shield]][discord-link] Packages Package Version Description ----------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------------- ---------------------------- keepalive-for-react Core keepalive functionality keepalive-for-react-router React Router integration Features - Support react-router-dom v6+ or react-router v7+ - Support React v16+ v18+ (v19.2 Activity component support [v5.0.0]) - Support Suspense and Lazy import - Support ErrorBoundary - Support Custom Container - Support Switching Animation Transition with className active and inactive - Simply implement, without any extra dependencies and hacking ways - Only 6KB minified size - Support interrupt state effect when component is not active (v5.0.0) Attention - Version Compatibility : - For React 18, please use keepalive-for-react@4.x.x - For React 19.2+, please use keepalive-for-react@5.x.x - DO NOT use , it CANNOT work with keepalive-for-react in development mode. because it can lead to some unexpected behavior. - In Router only support react-router-dom v6+ Install Usage in react-router-dom v6+ or react-router v7+ 1. install react-router-dom v6+ or react-router v7+ 2. use KeepAlive in your project or details see examples/react-router-dom-simple-starter in simple tabs details see examples/simple-tabs-start","default_branch":null,"files":null,"tree":[],"storefront":"/r/finedaybreak","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/finedaybreak/keepalive-for-react/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}