react-alive-outlet
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

React Alive Outlet

Support for caching removed router page when switching between page(支持在路由之间进行切换时缓存被移除的路由页面)

Usage

- import { Outlet } from 'react-router-dom';
+ import { KeepAliveOutlet } from 'react-alive-outlet';

  export default function Layout() {
    return (
      <div>
        <h1>App Header</h1>
-       <Outlet />
+       <KeepAliveOutlet />
      </div>
    );
  }

Package Sidebar

Install

npm i react-alive-outlet

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

11.3 kB

Total Files

14

Last publish

Collaborators

  • winme