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

See also: API > Settings.

Basics

Pre-rendering

vike-vue

Advanced

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

Upcoming

Potentially upcoming hooks:

Lifecycle

The order in which hooks are called upon rendering a page. (The hook flow.)

Data hook environment

Select the following:

  • Server-only (default) if you use +data.js or +onBeforeRender.js. (They run only on the server.)
  • Client-only if you use +data.client.js or +onBeforeRender.client.js. (They run only on the client.)
  • Server & client if you use +data.shared.js or +onBeforeRender.shared.js. (They run on both the server and the client.)

Routing executes the Route Function of all your pages.

See also:

See also