📦 Nuxt-Lifecycle
A life cycle hook that runs before rendering or routing occurs in Nuxt.
🌎 Global
The following multilingual documents are provided. (need pull request help)
⚗️ Installation
Please enter the command below to install this module.
npm i nuxt-lifecycle
Then define the following in
nuxt.config.js
ornuxt.config.ts
.
🔮 How to use
Instructions on how to use the
nuxt-life cycle
module are described below.
Lifecycle.onPrefetch Lifecycle.onServerPrefetch Lifecycle.onClientPrefetch // Returns true if it is currently operating on a client.Lifecycle.isClient // Returns true if it is currently operating on a server.Lifecycle.isServer
🏷 License
MIT Licensed.