Skip to content

Commit 3e19b6c

Browse files
committed
fix: created should be called with this rather than the comp definition
1 parent 85b7e0d commit 3e19b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function ssrRegisterHelper(comp: ComponentOptions, filename: string) {
3232
const ssrContext = this.$ssrContext
3333
;(ssrContext.modules || (ssrContext.modules = new Set())).add(filename)
3434
if (created) {
35-
created.call(comp)
35+
created.call(this)
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)