Lifecycle Hooks

Gitlab
Explore all Nuxt Statamic Hooks.
Added since: v1.0.0
Last changed:

Overview

The Nuxt Statamic module provides a set of hooks that you can use to extend the module's functionality.

Available Hooks

nuxt-statamic:error

This hook is called when an error occurs in the module.

Params

NuxtStatamicError
The error object.
interface 
NuxtStatamicError
extends
Partial
<
NuxtError
> {
data
?: {
name
?: string;
}; };

nuxt-statamic:error:api-request

This hook is called when an error occurs in the API request.

Params

NuxtStatamicApiRequestError
The error object.
interface 
NuxtStatamicApiRequestError
extends
FetchError
{
error
:
Error
}

nuxt-statamic:error:api-response

This hook is called when an error occurs in the API response.

Params

NuxtStatamicApiResponseError
The error object.
interface 
NuxtStatamicApiResponseError
extends
FetchError
{}

Changelog

v1.0.0

on

#407d36db

-

feat: released initial version of nuxt-statamic