]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
refactor: remove unused code
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 3 Mar 2021 15:14:43 +0000 (16:14 +0100)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Thu, 4 Mar 2021 15:43:47 +0000 (16:43 +0100)
nuxt/plugin.js
src/rootStore.ts

index c00ea7a9ae548e9fd22e447d7291de512045ad2c..abbe3581f4e2e185dfc85aaf8bdb1d8117b2c9d0 100644 (file)
@@ -1,16 +1,13 @@
 // @ts-check
 import Vue from 'vue'
 // @ts-ignore: this must be pinia to load the local module
-import { setActiveReq, PiniaSsr, setStateProvider, getRootState } from 'pinia'
-
-if (process.server) {
-  Vue.use(PiniaSsr)
-}
+import { setActiveReq, setStateProvider, getRootState } from 'pinia'
 
 /** @type {import('@nuxt/types').Plugin} */
 const myPlugin = (context) => {
   // console.log('🍍 Pinia Nuxt plugin installed')
 
+  // TODO: figure this out
   if (process.server) {
     setActiveReq(context.req)
     context.beforeNuxtRender(({ nuxtState }) => {
index 2cc4a6c7c6a6f6951349624d247876739ca5270d..4326ce3e3c3f6b595d8eceaf8adbbff5b7444d52 100644 (file)
@@ -117,7 +117,6 @@ export interface Pinia {
   Vue: VueConstructor<Vue>
 }
 
-export const IS_CLIENT = typeof window !== 'undefined'
 
 /**
  * Creates a Pinia instance to be used by the application