Skip to content

@vttforge/core / inject

Function: inject() ​

inject<App>(options): () => void

Insert something of your own every time an application renders.

Returns a function that unbinds the hook. Call it when the feature is switched off; leaving it bound means the injection comes back the next time that application renders.

Type Parameters ​

App ​

App = unknown

Parameters ​

options ​

InjectOptions<App>

Returns ​

() => void

MIT licensed.