Commit Graph

12 Commits

Author SHA1 Message Date
Evan You e80cd09fff Revert "fix(setup): setup hook should be called before beforeCreate"
This reverts commit e1342df784.

reopen #12802
close #12821
close #12822
2022-10-12 21:22:26 +08:00
Evan You e1342df784 fix(setup): setup hook should be called before beforeCreate
fix #12802

Note this commit moves the initialization of injections and props to
before the invocation of beforeCreate. This should not cause breakage
because props and inject normalization has always been done before
beforeCreate, so code that attempts to modifiy props/inject options
inside beforeCreate should have never worked.
2022-10-11 16:29:30 +08:00
JuniorTour 2263948c24
fix: directives shorthand normalize error (#12744)
fix #12743
2022-08-18 04:11:47 -04:00
Evan You adf3ac8adc feat(setup): support listeners on setup context + `useListeners()` helper
These are added because Vue 2 does not include listeners in
`context.attrs` so there is no way to access the equivalent of
`this.$listeners` in `setup()`.
2022-07-20 12:13:04 +08:00
Evan You 67760f8d30 fix(setup): ensure setup context slots can be accessed immediately
fix #12672
2022-07-16 21:45:03 +08:00
Evan You 2d67641656 fix: remove wrong observe toggle, properly disable tracking in setup() 2022-06-20 14:40:03 +08:00
Evan You 9d54f8bdfe chore: remove .only from tests 2022-06-20 14:14:41 +08:00
Evan You 52cf912d85 fix(setup): setup props should pass isReactive check
close #12561
2022-06-20 13:09:56 +08:00
Evan You aa2b1f4d93 feat: directive resolution for `<script setup>` 2022-06-15 21:21:59 +08:00
Evan You 460856510d wip: setup() template refs support 2022-05-30 16:47:00 +08:00
Evan You 6c1d2efd04 wip: setup() tests 2022-05-28 20:33:12 +08:00
Evan You 1e4ac46fe5 wip: lifecycle api 2022-05-27 23:40:03 +08:00