Search results
34 packages found
基于react18+的缓存组件,拥有类似vue的KeepAlive组件功能效果
- alive
- keep alive
- react
- react keep alive
- react keep alive item
- react keep alive scope
- react keep scope
- react hooks keep alive
keep-alive cache for react router
Keep react component view / store when switched view.
基于react18的模板项目,支持路由keepalive,历史访问页签等
Page cache routing for React
It is an easy-to-use keepAlive library exclusively for nextjs.
React Keepalive Component
Realize the keepalive function of react.
Module for caching views in next.js
- react-next-keep-alive
- react next keep alive
- react intagram-like zoom
- react
- keep alive
- react keepalive
- react keep alive
- react activation
- react-activation
- react cache view
- cache view
- next cache view
- nextjs
- next
react-buffer-firestore, a class- or *hook-based, promise-less handler for firebase firestore onSnapshot documents
- firebase
- firestore
- firebase-firestore
- buffer
- react
- array-buffer
- onSnapshot
- snapshot
- keepalive
- firebase-plugin
cache React Components
基于`react 16.8+` ,`react-router 4+` 开发的`react`缓存组件,可以用于缓存页面组件,类似`vue`的`keepalive`包裹`vue-router`的效果功能。
Package will allow components to maintain their status, to avoid repeated re-rendering.
react-buffer-firestore, a class- or *hook-based, promise-less handler for firebase firestore onSnapshot documents
- firebase
- firestore
- firebase-firestore
- buffer
- react
- array-buffer
- onSnapshot
- snapshot
- keepalive
- firebase-plugin
实现react的组件缓存
实现react的组件缓存
- 该高阶函数只是帮助组件在销毁前记录了当前所有`state`的值,然后下次进入的时候会把上次销毁前的`state`还原回去,从而实现一种类似的激活状态。
```js import KeepAlive from "react-router-dom6-keepalive" ``` ## 使用方法 ### h5形式 ```js import KeepAlive from "react-router-dom6-keepalive" //路由配置 const routeElements = useRoutes(routes); //配置tabBar页面,tabBar页面会一直缓存,pop它也不会销毁。其它页面pop后就会销毁。达到类似微信小程序的路由效果。 cons