textmode.js / plugins / TextmodePluginContext / registerPostSetupHook
Method: registerPostSetupHook()
ts
registerPostSetupHook(callback): () => void;Register a callback to be invoked after the user's setup callback completes. This happens after user code in setup() has finished executing, but before the loading screen finishes and the main render loop begins. Useful for plugins that need to finalize initialization after user setup.
Parameters
| Parameter | Type | Description |
|---|---|---|
callback | SetupLifecycleHook | The callback to invoke after setup. |
Returns
A function to unregister the hook.
() => void