https://github.com/hemengke1997/keepalive-react-router
Route-Level Keep-Alive for React Router
https://github.com/hemengke1997/keepalive-react-router
Last synced: 5 months ago
JSON representation
Route-Level Keep-Alive for React Router
- Host: GitHub
- URL: https://github.com/hemengke1997/keepalive-react-router
- Owner: hemengke1997
- License: mit
- Created: 2024-11-27T08:36:10.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-12T03:08:00.000Z (10 months ago)
- Last Synced: 2025-07-26T05:14:29.474Z (5 months ago)
- Language: TypeScript
- Homepage: https://keepalive-react-router.vercel.app/
- Size: 446 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
keepalive-react-router
Route-level keepalive for react-router
[中文](https://hemengke1997.github.io/keepalive-react-router/zh/)
## Introduction
`keepalive-react-router` is a route-level keepalive solution for `react-router`. It provides a way to cache the component instance when the route is switched, and reuse it when the route is switched back.
## Online Demo
[Click Here](https://keepalive-react-router.vercel.app/)
## Features
- Route level keepalive based on React Router DataAPI
- Route transition animation support
- Scroll position restoration for keepalive route components
- Excellent performance: keepalive route components do not enter the react rendering process
- Easy to use: one component to rule them all
- Flexible control: provide API to control route cache and lifecycle
Read the [documentation](https://hemengke1997.github.io/keepalive-react-router/) for more details.
## License
Distributed under the [MIT license](/LICENSE.md).