All Projects → BKWLD → nuxt-spa-store-init

BKWLD / nuxt-spa-store-init

Licence: MIT license
A simple Nuxt module that will hydrate the VueX store when running in SPA mode (not SSR)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nuxt-spa-store-init

nuxt-babel
Use normal .babelrc file with your Nuxt app
Stars: ✭ 32 (+128.57%)
Mutual labels:  nuxt, nuxt-module
lunr-module
Full-text search with pre-build indexes for Nuxt.js using lunr.js
Stars: ✭ 45 (+221.43%)
Mutual labels:  nuxt, nuxt-module
nuxt-feature-toggle
The nuxt feature toggle module
Stars: ✭ 78 (+457.14%)
Mutual labels:  nuxt, nuxt-module
date-fns-module
Modern JavaScript date utility library - date-fns for Nuxt.js
Stars: ✭ 68 (+385.71%)
Mutual labels:  nuxt, nuxt-module
nuxt-typo3
TYPO3 Frontend rendered in Vue.js and Nuxt (frontend for EXT:headless)
Stars: ✭ 66 (+371.43%)
Mutual labels:  nuxt, nuxt-module
separate-env-module
Tear your variables apart!
Stars: ✭ 53 (+278.57%)
Mutual labels:  nuxt, nuxt-module
k-domains
A simple module to manage multiple subdomains with just one project
Stars: ✭ 41 (+192.86%)
Mutual labels:  nuxt, nuxt-module
nuxt-prune-html
🔌⚡ Nuxt module to prune html before sending it to the browser (it removes elements matching CSS selector(s)), useful for boosting performance showing a different HTML for bots/audits by removing all the scripts with dynamic rendering
Stars: ✭ 69 (+392.86%)
Mutual labels:  nuxt, nuxt-module
nuxt-gsap-module
GSAP module for Nuxt.js
Stars: ✭ 183 (+1207.14%)
Mutual labels:  nuxt, nuxt-module
Auth Module
auth.nuxtjs.org
Stars: ✭ 1,624 (+11500%)
Mutual labels:  nuxt, nuxt-module
yamlful
YAML-based HTTP client code generation
Stars: ✭ 77 (+450%)
Mutual labels:  nuxt, nuxt-module
nuxt-ts-module
A tiny module to use Typescript within Nuxt.js application.
Stars: ✭ 21 (+50%)
Mutual labels:  nuxt, nuxt-module
nuxt-winston-log
Nuxt module for logging SSR errors using winston
Stars: ✭ 41 (+192.86%)
Mutual labels:  nuxt, nuxt-module
nuxt-svg-sprite-module
A quick and dirty way to inline svg sprites in your Nuxt app.
Stars: ✭ 21 (+50%)
Mutual labels:  nuxt, nuxt-module
nuxt-mail
Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.
Stars: ✭ 62 (+342.86%)
Mutual labels:  nuxt, nuxt-module
global-components
Module to register global components for Nuxt.js
Stars: ✭ 57 (+307.14%)
Mutual labels:  nuxt, nuxt-module
nuxt-jsonld
A Nuxt.js module to manage JSON-LD in Vue component.
Stars: ✭ 198 (+1314.29%)
Mutual labels:  nuxt, nuxt-module
nuxt-stencil
Easy Stencil.js component library integration with Nuxt.js.
Stars: ✭ 16 (+14.29%)
Mutual labels:  nuxt, nuxt-module
nuxt-storyblok-queries
Nuxt.js module to simplify queries to the Storyblok API
Stars: ✭ 17 (+21.43%)
Mutual labels:  nuxt, nuxt-module
nuxt-viewport
🌈 Define custom viewports for your Nuxt project
Stars: ✭ 55 (+292.86%)
Mutual labels:  nuxt, nuxt-module

nuxt-spa-store-init

A simple Nuxt module that will hydrate the VueX store when running in SPA mode, whether this is because you are running yarn dev --spa or you're using the fallback option of yarn generate. It is based on this comment as well as this comment and calls the root Vuex action nuxtServerInit() if it hasn't run yet.

Install

  1. yarn add nuxt-spa-store-init or npm install --save nuxt-spa-store-init
  2. Add to nuxt.config.js under modules: modules: ['nuxt-spa-store-init']

Usage

Ensure your nuxtServerInit action in store/index.js returns a Promise. Other than that, it just works automatically.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].