Calling flushSync inside a flush
flushSync() called while a flush is already draining is ignored (its callback still runs) and warns once in development.
flushSync() called while a flush is already draining is ignored (its callback still runs) and warns once in development.