Skip to content

Commit

Permalink
fix: pass vue instance as this pointer to setup (fix vuejs#12613)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniorTour committed Jul 6, 2022
1 parent c0e592e commit 88994cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v3/apiSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function initSetup(vm: Component) {
pushTarget()
const setupResult = invokeWithErrorHandling(
setup,
null,
vm,
[vm._props || shallowReactive({}), ctx],
vm,
`setup`
Expand Down

0 comments on commit 88994cc

Please sign in to comment.