Skip to content

Commit

Permalink
fix: avoid nuxtContext in spa mode (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMalinda authored May 25, 2020
1 parent e1eaf01 commit a0d10f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuxt/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const myPlugin = context => {
context.beforeNuxtRender(({ nuxtState }) => {
nuxtState.pinia = getRootState(context.req)
})
} else {
} else if (context.nuxtState) {
setStateProvider(() => context.nuxtState.pinia)
}
}
Expand Down

0 comments on commit a0d10f9

Please sign in to comment.