Reference
flushSync
Runs updates synchronously and flushes pending reactive work before returning.
Signature
function flushSync<T>(callback: (): T): TReference
Runs updates synchronously and flushes pending reactive work before returning.
function flushSync<T>(callback: (): T): T