React
React flushSync called inside a lifecycle method
React reported that flushSync was called during render or lifecycle work, where React is already in the middle of rendering and cannot synchronously flush again.
React
React reported that flushSync was called during render or lifecycle work, where React is already in the middle of rendering and cannot synchronously flush again.
Observed message
flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering.
Why it happens
How to fix it
Official reference
React Docs: Minified React error #187Related errors
Explore more