potato4d/nuxt-client-init-module
Tentang
Provide client version of nuxtServerInit
Pengembangan web dan aplikasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AslinuxtClientInit 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!
Jelajahi proyek terkait
Memuatβ¦