Closed iXab3r closed 11 months ago
Understood, thanks for the quick reply 😄
TL;DR; Known issue, no working solution yet
Known issue, no working solution yet
not even issue :) React.js doesn't have an option to disable this warning, so in this particular case it's not an issue
btw, thanks for raising this topic.
So, if we wouldn't have flushSync, we can see this (if there are a lot of nodes e.i. JS uses CPU close to 100%.):
http://127.0.0.1:5173/?template=perf&rows=100
I just got some time and checked possible solutions
react-reconciler
, but it is bundled (not peer dependency) into react-dom
package and isn't exposed ❌queueMicrotask(() => flushSync(f))
Luckly, it doesn't cause a gap between node and connections when flushSync
is called as a separate microtask
Released in v2.0.4
Thanks a lot for spending your time on fixing this! :)
Just for context, that is how browser console looked like :D
Thank you ❤️
🕵️♂️ Problem Description
When a user interacts with connections (e.g., lifting up an existing connection), the browser console displays repetitive warning messages. While these warnings don't break any functionality, they can flood the console, especially during batch operations.
🌍 Environment
2.0.2
(from NPM)🐾 Steps to Reproduce