potato4d/nuxt-client-init-module
Sobre
Provide client version of nuxtServerInit
Desenvolvimento web e de aplicativosCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalnuxtClientInit module
Provide client version of
nuxtServerInit.
nuxt-client-init-module provides Nuxt.js with the ability to inject processing at client initialization.
Just like nuxtServerInit, it is possible to implement the nuxtClientInit action, which is executed only on the client-side rendering, in the root Vuex module.
Installation
$ yarn add nuxt-client-init-module
Usage
in nuxt.config.js
{
...
modules: [
'nuxt-client-init-module'
]
...
}
in store/index.js
export const actions = {
nuxtClientInit({ commit }, context) {
// code
}
}
Note: When working with other modules (e.g. axios) that are needed during nuxtClientInit, nuxt-client-init-module should appear earlier in the modules section of nuxt.config.js for correct functionality.
Author
LICENSE
MIT
Contributors
Thanks goes to these wonderful people (emoji key):
HANATANI Takuma 💻 🐛 👀 💬 |
tosuke 🐛 |
Masaya Kazama 🐛 |
Nikita Umnov 💻 |
Mohammed Sohail 📖 |
Anton Sitnikov 📖 |
Simon Eldevig 🐛 |
Dmitry Belichack 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Explore projetos relacionados
Carregando…