pipiduck
Results
1
comments of
pipiduck
> React18之后setState默认异步更新,可以使用flushSync开启同步更新。 在setTimeout或者原生dom事件中,setState也是异步吗