[BUG?]: ComboboxOptions - flushSync was called from inside a lifecycle method. #3829
Replies: 1 comment
|
This looks like the same underlying class of issue the library already has a documented workaround for elsewhere, just not covered for the virtual-scrolling path yet. In The I don't have a confirmed root cause tying the exact virtual-scroll code path to this, that would need someone to trace it inside the library, but given the precedent already in |
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
All reactions