Home
Softono

Nuxt Client Init Module

Open source MIT JavaScript
235
Stars
9
Forks
15
Issues
3
Watchers
2 months
Last Commit

 About Nuxt Client Init Module

Provide client version of nuxtServerInit

Platforms

Web Self-hosted

Languages

JavaScript

Need Help Installing Nuxt Client Init Module?

We provide expert installation service for this software. Our team will install, configure, and secure Nuxt Client Init Module on your server. plans start at just $30.

Nuxt Client Init Module

View on GitHub

nuxtClientInit module

code style: prettier donate: Patreon License: MIT NPM version All Contributors NPM downloads codecov

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.

Buy Me A Coffee

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!