Results 24 comments of virgo

> 1. CI 没过 > 2. 我没有太多用过 Suspense,我先学习下~ ci貌似是install时候报错的

> emm,用这个我感觉直接用 redux 不就行了,主要的差别在于哪里呢? 我觉得不应该和redux类比,useEnhance和redux解决的问题不是一致的 useEnhance只是useReducer的增强,让我们可以更优雅的处理诸如异步操作等,状态管理仍然是react范畴

I have a similar implementation, followed by useSyncExternalStore. ```typescript import type { Dispatch, SetStateAction } from 'react'; import { useCallback, useDebugValue } from 'react'; import { useSyncExternalStore } from 'use-sync-external-store/shim';...

You can encapsulate it like this ```typescript import NiceModal from '@ebay/nice-modal-react' import type { FC } from 'react' export const createNiceModal = (component: FC) => { const Dialog = NiceModal.create(component);...

I used a PDF file of about 110MB for testing. js took about 400ms and wasm about 700ms. Is there a threshold and wasm is faster than js?

> According to my measurements the threshold is at a few kilobytes and in the other direction and when it's not warmed up. I mean JS might be faster with...

如图下拉框的dom,是不在Offscreen作用域下的,可以设置getPopupContainer属性来使得其置于Offscreen作用域内

> 补充一下,如果是这种状态基本判定无法大规模使用,只能做局部模块缓存使用。 以 #5 这个 issue 大概率是一个问题。 是同一个问题,但这个问题不是Activity可以解决调的

> > > 补充一下,如果是这种状态基本判定无法大规模使用,只能做局部模块缓存使用。 以 #5 这个 issue 大概率是一个问题。 > > > > > > 是同一个问题,但这个问题不是Activity可以解决调的 > > React原生的 Activity 没有这个问题, 可以查看具体原因,如果是 html 未隐藏才导致有这个动画,那也有办法处理。 还有一点这种处理方式跟原生有很大差异的一点就是 useEffect 不会执行,这个可以通过修改React useEffect是否可以实现。 1. 组件挂起时实际是通过throw...

> 补充一下,如果是这种状态基本判定无法大规模使用,只能做局部模块缓存使用。 以 #5 这个 issue 大概率是一个问题。 5 4 如果默认motionLeave为true的话,会默认走一遍动画流程,看下是否可以关闭