Evan You
db9c566032
fix: account for nested render calls
...
close #13131
2023-12-14 09:21:11 +08:00
Evan You
e0747f40a8
fix(keep-alive): fix memory leak without breaking transition tests
2023-12-07 17:07:15 +08:00
Evan You
2632249925
fix(keep-alive): fix keep-alive memory leak
...
close #12827
2023-12-07 16:12:36 +08:00
Evan You
6d857f5bee
fix(watch): new property addition should trigger deep watcher with getter
...
close #12967
close #12972
2023-12-07 00:13:31 +08:00
Simon Lévesque
a174c29dab
fix(types): fix shallowRef's return type ( #12979 )
...
close #12978
2023-12-06 23:51:56 +08:00
Evan You
f5ef882a78
fix(style): always set new styles
...
close #12901
close #12946
2023-12-06 23:17:02 +08:00
Evan You
ae3e4b1c70
fix(utils): unwrap refs when stringifying values in template
...
close #12884
close #12888
2023-12-06 16:40:49 +08:00
Evan You
0ad8e8d94f
fix(shallowReactive): should track value if already reactive when set in shallowReactive
2023-12-06 15:45:15 +08:00
Evan You
08382f0080
fix(props): should not unwrap props that are raw refs
...
close #12930
2023-12-06 15:10:49 +08:00
xdm
c22363425a
fix(patch): clone insert hooks to avoid being mutated during iteration ( #12905 )
2023-10-23 15:11:13 +08:00
Red Huang
74ca5a13ba
fix(lifecycle): scope might changed when call hook ( #13070 )
2023-10-22 10:52:10 +08:00
mikoloism
49b6bd4264
refactor(shared): update genStaticKeys
( #13010 )
2023-04-27 11:43:19 +02:00
星宿君
d52fbff7a7
chore: fix typo in utils.ts ( #12927 ) [skip ci]
2023-01-12 15:47:00 +01:00
Vadim
0e8511a8be
chore: fix typo in apiAsyncComponent.ts ( #12912 )
2022-12-27 22:38:05 +01:00
Ihor Sychevskyi
34c6192f4a
chore: update links (http=https) ( #12911 )
2022-12-27 10:19:37 +01:00
董雨航
ca11dc6a86
chore: fix typo ( #12894 )
2022-12-06 15:35:28 +01:00
Evan You
29b5f58803
fix(reactivity): avoid using WeakMap for IE compatibility
...
Using a WeakMap polyfill isn't ideal because the reason we tried to use
WeakMap was to work with non-extensible objects. However, WeakMap
polyfill for non-extensible objects are non-weak and could lead to
memory leaks.
The trade-off is that we remove support for `readonly()` on
non-extensible objects, which seems reasonable.
close #12837
2022-11-09 20:33:11 +08:00
Evan You
d1899caf68
fix(provide/inject): do not mutate original provide options during merge
...
fix #12854
2022-11-09 20:04:55 +08:00
a161803398
5e3d4e90cd
fix(compiler-sfc): fix template usage check edge case for v-slot destructured default value ( #12842 )
...
fix #12841
2022-11-09 04:52:35 -05:00
Jinjiang
6d9aac8bd3
chore: fix some broken links to v2 docs ( #12839 )
2022-10-19 12:45:59 +08:00
Evan You
800207c473
fix(effectScope): calling off() of a detached scope should not break currentScope
...
fix #12825
2022-10-14 10:51:07 +08:00
不见月
5960f05c69
fix(watch): avoid traversing objects that are marked non-reactive ( #12806 )
2022-10-12 21:43:46 +08:00
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
8880b55d52
perf: improve unsub perf for deps with massive amount of subs
...
close #12696
2022-10-11 19:02:47 +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
Xiersa
5d26f815c6
fix(reactivity): check skip first before checking ref when creating observer ( #12813 )
...
fix #12812
2022-10-11 01:26:20 -04:00
Evan You
4a0d88e46e
fix(reactivity): use WeakMap for proxy/raw checks, compat with non-extensible objects
...
fix #12799
close #12798
2022-10-11 12:26:32 +08:00
不见月
e0b26c483a
fix: fix parent of multi-nested HOC $el not updating ( #12757 )
...
fix #12589
2022-08-22 21:22:45 -04:00
Evan You
7161176cd0
fix: fix effect scope tracking for manually created instances
...
fix #12705
2022-08-18 18:14:50 +08:00
Alexander Lichter
165a14a6c6
fix(ssr): fix on-component directives rendering ( #12661 )
...
fix #10733
2022-08-18 04:22:55 -04:00
不见月
bba6b3d6b4
feat(types): enhance type for onErrorCaptured ( #12735 )
2022-08-18 04:20:27 -04:00
GU Yiling
9eb8ea5b63
chore: fix some legacy doc urls in warnings and readme ( #12725 ) [ci skip]
2022-08-18 04:12:20 -04:00
JuniorTour
2263948c24
fix: directives shorthand normalize error ( #12744 )
...
fix #12743
2022-08-18 04:11:47 -04:00
Evan You
f0057b101e
fix(watch): avoid pre watcher firing on unmount
...
fix #12703
2022-08-15 19:06:38 +08:00
Evan You
bd89ce53a9
fix: ensure render watcher of manually created instance is correctly tracked in owner scope
...
fix #12701
2022-08-15 15:37:13 +08:00
Evan You
2af751b6ef
fix(reactivity): fix shallowReactive nested ref setting edge cases
...
ref #12688
2022-07-22 11:20:40 +08:00
edison
a695c5a6df
fix(sfc): align <script setup>
component resolution edge case with v3 ( #12687 )
...
fix #12685
2022-07-21 22:18:27 -04:00
Evan You
ce6fc149e3
types: fix manual api types for useAttrs/useListeners
2022-07-22 10:05:35 +08: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
e8d3a7d7a1
fix(codegen): script setup should not attempt to resolve native elements as component
...
fix #12674
2022-07-16 22:08:07 +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
ea5d0f3fbf
fix(inject): fix edge case of provided with async-mutated getters
...
fix #12667
2022-07-16 21:33:48 +08:00
Evan You
25ffdb62d2
fix(watch): fix queueing multiple post watchers
...
fix #12664
2022-07-16 20:46:39 +08:00
Evan You
1a2c3c2d77
fix(watch): fix deep watch for structures containing raw refs
...
fix #12652
2022-07-13 11:01:10 +08:00
Evan You
a6e74985cf
fix: detect property add/deletion on reactive objects from setup when used in templates
2022-07-12 18:59:26 +08:00
Evan You
98fb01c79c
fix(reactivity): fix watch behavior inconsistency + deep ref shallow check
...
fix #12643
2022-07-12 18:50:12 +08:00
Evan You
0825d3087f
fix: do not set currentInstance in beforeCreate
...
fix #12636
2022-07-12 18:19:19 +08:00
Evan You
04b4703de7
fix(sfc): fix sfc name inference type check
...
fix #12637
2022-07-12 17:39:49 +08:00
Evan You
dc8a68e8c6
fix: pass element creation helper to static render fns for functional components
...
fix #12625
2022-07-08 15:03:09 +08:00
Evan You
8904ca77c2
fix(watch): fix watchers triggered in mounted hook
...
fix #12624
2022-07-08 14:47:03 +08:00