Hooks

List of built-in hooks. (You can create your own hooks.)

Basic

Advanced

Most users don't need to know about these hooks.

  • onBeforeRender(): server-side (configurable) Called before the page is rendered, lower-level and usually for advanced integrations with data fetching tools.
  • onRenderHtml(): server-side Called when a page is rendered to HTML on the server-side.
  • onRenderClient(): client-side Called when a page is rendered on the client-side.
  • onBeforeRoute(): server (and potentially client-side) Called before the URL is routed to a page.

See also