cdxcdx

Results 47 comments of cdxcdx

> 那你说的这个方案状态都丢失了显然是不够合理的 😂 还是得等等官方的离屏渲染。我个人还是更喜欢 React 开发的,Vue 用不惯 我说那个方案状态是不会丢失的

原理很简单就是利用Suspense这个组件的机制,If React needs to hide the already visible content, 只要在Suspence的子组件throw 一个promise就会再次进入suspend,那样react就会hide已经渲染的内容而不是卸载。卸载意味着状态丢失。

你看看我封装的,你就知道了 ```ts import { Suspense, useEffect, useRef } from "react"; function Prepare(props: { mode: 'hidden' | 'visible'; children: any }) { const { mode, children } = props; const resolveRef...

@IGrebyonkin could merge as soon as possible?

You put that data into Pie Component that must be force render

Also having this issue.

@asif-jalil I look forward to this feature

> [If this gets merged](https://github.com/axios/axios/pull/5146) it could be possible to just use Axios directly again but with a supported adapter. when 'if this gets merged ' can be used?