Commit Graph

506 Commits

Author SHA1 Message Date
三咲智子 Kevin Deng f6ce3f9d43
Merge tag 'v3.5.13' 2024-11-16 02:48:30 +08:00
zhangenming d637bd6c01
perf(reactivity): do not track inner key `__v_skip`` (#11690) 2024-11-15 11:00:24 +08:00
edison 70b44ca835
chore(reactivity): remove unecessary array copy (#12400) 2024-11-15 10:37:24 +08:00
edison bee2f5ee62
fix(reactivity): release nested effects/scopes on effect scope stop (#12373)
close #12370
2024-11-14 14:24:22 +08:00
Evan You 21932840ea
fix(reactiivty): avoid unnecessary watcher effect removal from inactive scope
close #5783
close #5806
2024-11-14 14:12:41 +08:00
Evan You b1260e0dd6
Merge remote-tracking branch 'upstream/main' 2024-11-11 17:05:52 +08:00
skirtle c82b66214b
refactor(reactivity): reduce size of collectionHandlers (#12152) 2024-10-11 21:10:09 +08:00
skirtle ec917cfdb9
perf(reactivity): avoid unnecessary recursion in removeSub (#12135) 2024-10-11 10:48:54 +08:00
Tycho 7ad289e1e7
fix(reactivity): trigger reactivity for Map key `undefined` (#12055)
close #12054
2024-10-11 10:39:08 +08:00
三咲智子 Kevin Deng c7fd6ae2dc
Merge tag 'v3.5.11' 2024-10-05 11:40:13 +08:00
山吹色御守 c97bb84d0b
fix(types): infer the first generic type of `Ref` correctly (#12094) 2024-10-03 23:22:57 +08:00
Tycho d3f5e6e531
fix(reactivity): prevent overwriting `next` property during batch processing (#12075)
close #12072
2024-10-03 23:16:52 +08:00
Evan You 29de6f8b0b
chore: remove no longer used property on Dep 2024-09-28 19:25:16 +08:00
Evan You 93c95dd4cd
fix(reactivity): fix nested batch edge case 2024-09-27 23:10:20 +08:00
Evan You aa9ef2386a
fix(reactivity): only clear notified flags for computed in first batch iteration
close #12045
2024-09-27 11:25:58 +08:00
Tycho e2c19c20cf
fix(types/ref): handle nested refs in UnwrapRef (#12049)
close #12044
2024-09-27 10:23:01 +08:00
Evan You 10ff159240
fix(reactivity): fix recursive sync watcher on computed edge case
close #12033
close #12037
2024-09-26 18:38:13 +08:00
Evan You 6001e5c81a
fix(reactivity): fix property dep removal regression
close #12020
close #12021
2024-09-26 16:58:38 +08:00
yangxiuxiu c0e9434414
refactor(reactivity): avoid optional chaining in getDepFromReactive (#12007) 2024-09-24 18:02:01 +08:00
Jürg Lehni 0267a58801
fix(reactivity): do not remove dep from depsMap when cleaning up deps of computed (#11995) 2024-09-22 11:49:35 +08:00
三咲智子 Kevin Deng b8713589de
Merge remote-tracking branch 'upstream/main' 2024-09-22 02:42:52 +08:00
Evan You 960706eebf
fix(reactivity): do not remove dep from depsMap when unsubbed by computed
follow up of 235ea4772 after discovering regression in vant ecosystem-ci tests
2024-09-20 23:39:59 +08:00
linzhe b030c8bc73
fix(reactivity): fix triggerRef call on ObjectRefImpl returned by toRef (#11986)
close #11982
2024-09-20 20:48:15 +08:00
Evan You 235ea4772e
fix(reactivity): fix memory leak from dep instances of garbage collected objects
close #11979
close #11971
2024-09-20 20:32:40 +08:00
Evan You 5c8b76ed6c
fix(reactivity): fix dev-only memory leak by updating dep.subsHead on sub removal
ref #11956
2024-09-20 20:06:39 +08:00
三咲智子 Kevin Deng 594cb1412d
Merge remote-tracking branch 'upstream/main' 2024-09-17 10:33:35 +08:00
Evan You c74bb8c2dd
fix(reactivity): avoid exponential perf cost and reduce call stack depth for deeply chained computeds (#11944)
close #11928
2024-09-16 16:00:31 +08:00
Yang Mingshan 49fa673493
fix(watch): `once` option should be ignored by watchEffect (#11884) 2024-09-16 10:56:32 +08:00
Tycho aa5dafd2b5
fix(reactivity): rely on dirty check only when computed has deps (#11931)
close #11929
2024-09-16 10:28:46 +08:00
Tycho 346bfaf760
refactor(reactivity): simplify isDirty condition (#11933) 2024-09-16 09:59:13 +08:00
Evan You 8ea5d6d698
fix(reactivity): properly clean up deps, fix memory leak
close #11901
2024-09-13 18:35:16 +08:00
Evan You 11eebcb4df
refactor(reactivity): use class for Link 2024-09-13 18:35:16 +08:00
Evan You e596378e0b
fix: Revert "fix: Revert "fix(reactivity): self-referencing computed should refresh""
This reverts commit 35c760f82f.
2024-09-10 16:01:20 +08:00
zhangenming f80d447c17
perf(reactivity): trigger deps directly instead of storing in an array first (#11695) 2024-09-10 15:48:51 +08:00
Konv Suu 67d6596d40
fix(reactivity): fix markRaw error on already marked object (#11864)
close #11862
2024-09-10 15:40:43 +08:00
Evan You 35c760f82f
fix: Revert "fix(reactivity): self-referencing computed should refresh"
This reverts commit e84c4a608e.
2024-09-06 08:47:12 +08:00
Evan You e84c4a608e
fix(reactivity): self-referencing computed should refresh
ref: https://github.com/vuejs/core/pull/11797#issuecomment-2330738633
2024-09-05 19:04:17 +08:00
Jürg Lehni 716275d1b1
fix(reactivity): prevent endless recursion in computed getters (#11797) 2024-09-05 18:54:30 +08:00
Evan You 46c3ab1d71
fix(reactivity): make toRaw work on proxies created by proxyRef 2024-09-05 17:47:03 +08:00
yangxiuxiu 98864a7ef5
fix(reactivity): pass oldValue to computed getter (#11813)
close #11812
2024-09-05 16:10:37 +08:00
Evan You 40193696b3
chore(build): use /*@__PURE__*/ annotation consistently 2024-09-04 20:24:33 +08:00
Tycho 475977a6f7
fix(reactivity): handle non-array arguments in reactive `concat` method (#11794)
close #11792
2024-09-04 20:21:10 +08:00
Tycho 9817c80187
fix(reactivity): correctly handle method calls on user-extended arrays (#11760)
close #11759
2024-09-03 17:32:13 +08:00
Cédric Exbrayat d427bcd71c
chore: document parameters of onWatcherCleanup (#11768) 2024-09-02 17:06:30 +08:00
Evan You 313e4bf552
fix(reactivity): avoid infinite recursion when mutating ref wrapped in reactive
close #11696
2024-08-29 14:10:29 +08:00
HEGGRIA 64e1ca2657
chore(reactivity): effectScope.ts variable declarations optimized and remove useless code in effect.ts (#11721)
* chore(reactivity): effectScope.ts variable declarations optimized and remove useless code in effect.ts

* fix(reactivity): batchDepth count error fixed

* fix(reactivity): batchDepth count error fixed

* chore(reactivity): modify the batchDepth increase type
2024-08-28 18:16:59 +08:00
yangxiuxiu fbc0c42bcf
fix(reactivity): ensure watcher with once: true are properly removed from effect scope (#11665) 2024-08-20 16:35:08 +08:00
Evan You f2ea25dc54
refactor(watch): reuse watch types 2024-08-20 16:16:25 +08:00
Rizumu Ayaka 205e5b5e27
feat(reactivity): base `watch`, `getCurrentWatcher`, and `onWatcherCleanup` (#9927) 2024-08-20 08:21:44 +08:00
edison 9de1d101f9
fix(reactivity): extended methods respect reactive (#11629)
close #11628
2024-08-16 16:23:09 +08:00