File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- import { defineComponent , computed } from '@vue/composition-api'
1
+ import {
2
+ createComponent as defineComponent ,
3
+ computed ,
4
+ } from '@vue/composition-api'
2
5
import { useStore } from './store'
3
6
4
7
export default defineComponent ( {
Original file line number Diff line number Diff line change 1
1
import { VueConstructor } from 'vue/types'
2
2
import { setActiveReq } from './rootStore'
3
+ import { SetupContext } from '@vue/composition-api'
3
4
4
5
export const PiniaSsr = ( vue : VueConstructor ) => {
5
6
const isServer = typeof window === 'undefined'
@@ -13,9 +14,11 @@ export const PiniaSsr = (vue: VueConstructor) => {
13
14
14
15
vue . mixin ( {
15
16
beforeCreate ( ) {
17
+ // @ts -ignore
16
18
const { setup, serverPrefetch } = this . $options
17
19
if ( setup ) {
18
- this . $options . setup = ( props , context ) => {
20
+ // @ts -ignore
21
+ this . $options . setup = ( props : any , context : SetupContext ) => {
19
22
// @ts -ignore
20
23
setActiveReq ( context . ssrContext . req )
21
24
return setup ( props , context )
You can’t perform that action at this time.
0 commit comments