keepalive-react-router
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

Logo

keepalive-react-router

Route-level keepalive for react-router

中文

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

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 for more details.

License

Distributed under the MIT license.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.31latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.31
1.1.22
1.1.10
1.1.00
1.0.10
1.0.00
0.0.00

Package Sidebar

Install

npm i keepalive-react-router

Weekly Downloads

3

Version

1.1.3

License

MIT

Unpacked Size

39.3 kB

Total Files

51

Last publish

Collaborators

  • hemengke-