[BUG?]: ComboboxOptions - flushSync was called from inside a lifecycle method. #3829
Unanswered
uriseroussi
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I believe there is a possible bug when using virtual scrolling in the
Comboboxcomponent. When using virtual scrolling, I get aflushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.error originating from theComboboxOptionscomponent.Has anyone encountered this and has a fix? Any help would be appreciated
The error seems a bit finicky to reproduce. Depending on the options given to the combobox, and how fast one types, the error might or might not appear.
Below is a minimal example to reproduce.
Try to type numbers from 0 - 1000 quickly and randomly, and the error should be appear.
Package versions:
Thanks,
Uri
Beta Was this translation helpful? Give feedback.
All reactions