Daniel Spitzer
9093cdfcf5
fix: move React flushSync to microtask ( #3188 )
...
To avoid seeing the `Warning: flushSync 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, we need to move the `flushSync()` code that avoids automatic batching to a microtask to not fire a lifecycle event `setState()` during rendering.
Fixes warning introduced in #2985
2022-09-13 20:36:35 +02:00
..
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-13 20:36:35 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00
2022-09-11 11:11:52 +02:00