New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-alive-outlet

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-alive-outlet

react keep router alive

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

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>
    );
  }

Keywords

react

FAQs

Package last updated on 28 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts