Skip to content

API Reference / @gtkx/react / @gtkx/react / quit

Function: quit() ​

quit(): boolean

Defined in: packages/react/src/reconciler/root.ts:133

Unmounts every render root that currently holds a mounted tree and quits each application element it unmounts, as application.quit() does, so the application ends even while it holds itself with hold().

Returns ​

boolean

Gdk.EVENT_STOP when at least one root came down, so a close-request handler keeps GTK4 from closing the window itself, and Gdk.EVENT_PROPAGATE when there was nothing to unmount, so the default handler still runs.