Replies: 1 comment
-
It was added to reduce lag in react 18 #549 when position elements. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When developing a text editor with react-virtual, I experienced a weird problem: when scrolling it is very slow and even unusable, but after patching the code:
virtual/packages/react-virtual/src/index.tsx
Lines 27 to 37 in 661a956
It fixed the issue. Can anyone explain why "flushSync" must be used? Because the React docs also mentions that "flushSync" can hurt the performance.
Similar issue: ueberdosis/tiptap#4492
Beta Was this translation helpful? Give feedback.
All reactions