-
Vue officially supports the keepalive method, and it works well
https://vuejs.org/guide/built-ins/keep-alive.html
-
I am integrating Deepgram JS SDK in React Native. Following this documentation (https://developers.deepgram.com/docs/node-sdk-streaming-transcription)
I initialised the SDK doing this:
import { cr…
ndbac updated
1 month ago
-
Hi! nice library, but I'd like to ask for help solving an issue with React 18 and createPortal.
### Current Behaviour:
When using KeepAlive inside portals, the component wrapped by KeepAlive is …
-
首次加载画面都正常 然后切换tab加载缓存画面,出现两个页面显示一样, 尤其是第一个和第二tab标签
import { AliveScope } from 'react-activation';
import { Outlet } from 'react-router-dom';
import TabLayout from './TabLayout'; // 导入你创建的TabLa…
-
```jsx
import React, { useState } from "react";
import { Button } from "antd";
import { KeepAlive } from "react-keep-alive";
const SchoolList: React.FC = function () {
const [counter, setCoun…
-
### Description
Lots of type errors in the generated `react-query.gen.ts`
```ts
import type { Options } from '@hey-api/client-fetch';
type QueryKey = [
Pick & {
_id: string;
…
-
**使用keepAlive 包裹组件后,在组件内部获取全局初始状态报错 const { initialState } = useModel('@@initialState');**
![image](https://user-images.githubusercontent.com/34650704/187817580-1265b401-a7d6-4d0a-9f11-ded5fba22af4…
-
“KeepAlive”不能用作 JSX 组件。
其实例类型 "KeepAlive" 不是有效的 JSX 元素。
在这些类型中,"render()" 返回的类型不兼容。
不能将类型“React.ReactNode”分配给类型“import("D:/\u9879\u76EE/room-reservation-frontend/node_modules/umi/node_m…
-
在 issues 的历史线上有一个相关问题,https://github.com/irychen/keepalive-for-react/issues/9 但是这个问题的解决办法——通过 CSS 来做动画,并不适用我的方案。
因为我的理想动画是这个过程:
1. 路由切换
2. 旧的组件缓慢移除
3. 新的组件缓慢进入
于是我需要使用 SwitchTransition 的 ou…
-
使用KeepAlive组件后,react-router-dom errorElement失效
"react": "^17.0.2",
"react-activation": "^0.12.2",
"react-router-dom": "^6.5.0"