API Reference / @gtkx/react / index / flushSync
Function: flushSync()
flushSync<
T>(callback):T
Defined in: packages/react/src/reconciler/root.ts:138
Commits updates scheduled by the callback before returning. Use this when a native signal must synchronously return a widget or page created by rendering JSX.
Type Parameters
T
T
Parameters
callback
() => T
Returns
T