Skip to main content
zerotal

Documentation


Documentation / @zerotal/admin / index / resolveRenderHooks

Function: resolveRenderHooks()

resolveRenderHooks(hooks, context?): (string | HtmlNode)[]

Defined in: admin/src/renderHooks.ts:72

Resolve every hook registered at name, dropping the ones that declined to render and the ones that threw.

A hook is decoration: it must not be able to take down the page it decorates, so a throwing hook is logged and skipped rather than propagated.

Parameters

hooks

RenderHook[]

context?

RenderHookContext = {}

Returns

(string | HtmlNode)[]