LaamGinghong

Results 11 comments of LaamGinghong

I also encountered the same scene. In my scenario, I want all tsx files except for the file name `use***.tsx` to use the pascal case rule, and `use***.tsx` to use...

![image](https://user-images.githubusercontent.com/33472924/140455981-a80d5b7b-cdf0-43b8-858b-3bb99fcf1e3c.png) Neither approach worked for me in MacOS BigSur

一个 DEMO: ```tsx import { createForm } from '@arco-design/web-react' interface FormData { name: string } const { Form, useForm } = createForm() function App() { const [form] = useForm() return...

这个希望能支持一下,使用 localForage 的时候返回的是 Promise,目前只能设置在 localstorage 里面

@liuyib 还是使用我的原 demo,按照以下步骤必现: 1. 点击左侧按钮进行 setNum(可以多点几次) 2. 点击右侧按钮,此时会同时执行 setNum 和 runAsync 3. 因为使用 useUpdateEffect 去处理 num 的副作用,num 变化时执行 run 我理解出现这个问题的原因应该是内部对请求进行合并,后面的 run 将第一次的 runAsync 取消了以确保请求回来的 data 一定是最后一次 run 执行回来的。 我认可这种行为,但我认为被合并的异步行为是否应该要 reject...

@liuyib ![image](https://user-images.githubusercontent.com/33472924/225217401-24eb0203-065e-4f1e-a922-2d42f71957fe.png) 可以看到首先我点击了两次左侧的按钮,然后再点击右侧的按钮,圈起来的 `console.log('after request')` 并没有被执行

![image](https://user-images.githubusercontent.com/33472924/225217730-5b62ba55-e33a-4270-9515-756667621a4d.png) 然后我们如果直接打印 runAsync,可以看到控制台的 Promise 显示的状态就是 pending

https://stackblitz.com/edit/react-ts-irlzn6?file=App.tsx @liuyib 这个例子就能够看到了,onSuccess 里面根本没有打印 async