skirtle
df56cc5287
fix(scheduler): prevent duplicate jobs being queued ( #11826 )
...
Fix #11712
Fix #11807
2024-09-05 20:51:26 +08:00
远方os
c518517cb3
chore(types): removed the Awaited compatibility type tool ( #11820 )
2024-09-05 16:09:10 +08:00
Evan You
40193696b3
chore(build): use /*@__PURE__*/ annotation consistently
2024-09-04 20:24:33 +08:00
skirtle
4b608a9449
refactor(scheduler): remove invalidateJob ( #11650 )
...
Co-authored-by: Evan You <evan@vuejs.org>
2024-08-19 10:49:59 +08:00
skirtle
7fbf4964e4
refactor(scheduler): remove redundant sorting ( #11646 )
2024-08-19 10:17:45 +08:00
skirtle
b332f80f0e
fix(runtime-core): pre jobs without an id should run first ( #7746 )
2024-08-19 10:13:50 +08:00
Kevin Deng 三咲智子
928af5fe2f
refactor(types): enable `isolatedDeclarations` ( #11178 )
2024-08-08 23:05:21 +08:00
Evan You
59a3e88903
feat(teleport): support deferred Teleport ( #11387 )
...
close #2015
close #11386
2024-07-18 21:06:48 +08:00
Evan You
f15ba2c2e2
chore: Merge branch 'main' into minor
2024-07-17 17:32:31 +08:00
Evan You
ee0248accf
fix(runtime-core): errors during component patch should be caught by error handlers
2024-07-12 01:24:17 +08:00
Evan You
26356264d2
chore: Merge branch 'main' into minor
2024-06-14 12:32:28 +02:00
edison
aa156ed5c4
fix(runtime-core): do not fire mount/activated hooks if unmounted before mounted ( #9370 )
...
close #8898
close #9264
close #9617
2024-06-07 13:48:50 +08:00
Evan You
8708a7f1ef
chore: fix lint
2024-05-30 11:25:39 +08:00
Evan You
55660b0cfc
refactor(scheduler): use bitwise flags for scheduler jobs + optimize queueJob ( #10407 )
...
related: https://github.com/vuejs/core-vapor/pull/138
2024-02-26 10:22:12 +08:00
Evan You
05eb4e0fef
Refactor reactivity system to use version counting and doubly-linked list tracking ( #10397 )
...
Bug fixes
close #10236
close #10069
PRs made stale by this one
close #10290
close #10354
close #10189
close #9480
2024-02-25 16:51:49 +08:00
Evan You
d9162dfc2e
fix(scheduler): sort nested postFlushCbs
...
close #10003
2024-01-08 18:20:29 +08:00
Doctorwu
68e5cc6ac8
chore(runtime-core): remove console comment ( #9989 )
2024-01-07 03:26:38 +08:00
三咲智子 Kevin Deng
bfe6b459d3
style: update format & lint config ( #9162 )
...
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
AlanYu
1d79b64ebc
feat(runtime-core): throw real error when scheduler detects infinite loop during dev ( #7447 )
...
close #7437
2023-12-19 16:59:47 +08:00
Rudy
6784f0b1f8
fix(watch): should not fire pre watcher on child component unmount ( #7181 )
...
close #7030
2023-12-08 12:24:44 +08:00
skirtle
a8f663867b
fix(scheduler): ensure jobs are in the correct order ( #7748 )
...
close #7576
2023-10-21 10:38:54 +08:00
丶远方
6a22b1f6c2
fix(types): ensure nextTick return type reflect correct Promise value ( #8406 )
2023-07-11 17:56:02 +08:00
Evan You
6aaf8efeff
fix(runtime-core): avoid double firing when mounting inside a watcher callback
...
fix #6614
2022-09-08 09:59:51 +08:00
Evan You
78c199d6db
fix(watch): flush:pre watchers should not fire if state change causes
...
owner component to unmount
fix #2291
2022-08-15 19:00:55 +08:00
Evan You
74d2a76af6
fix(watch): fix flush: pre watchers triggered synchronously in setup
...
fix #5721
2022-04-15 18:08:44 +08:00
宋铄运 (Alan Song)
c6eb3cccce
build: improve treeshakeability ( #5682 )
2022-04-13 05:39:02 -04:00
Evan You
a31303f835
build: generate more treeshaking friendly code
2021-09-16 10:56:34 -04:00
王嘉欣
36ae23d27e
chore(types): remove unnecessary assertions ( #4168 )
2021-07-21 15:55:31 -04:00
Evan You
33c2fbfdc8
fix(reactivity): revert computed scheduler change
...
fix #4157
2021-07-20 16:45:29 -04:00
Evan You
d810a1a569
fix(scheduler): fix insertion for id-less job
...
fix #4148
2021-07-19 13:37:38 -04:00
Evan You
ebaac9a56d
perf(reactivity): avoid triggering re-render if computed value did not change
2021-07-16 14:30:49 -04:00
Evan You
87f69fd0bb
perf(reactivity): improve reactive effect memory usage ( #4001 )
...
Based on #2345 , but with smaller API change
- Use class implementation for `ReactiveEffect`
- Switch internal creation of effects to use the class constructor
- Avoid options object allocation
- Avoid creating bound effect runner function (used in schedulers) when not necessary.
- Consumes ~17% less memory compared to last commit
- Introduces a very minor breaking change: the `scheduler` option passed to `effect` no longer receives the runner function.
2021-07-16 14:30:49 -04:00
Carlos Rodrigues
18911abb91
fix(type): infer parent as `this` on `nextTick` function ( #3608 )
...
fix #3599
2021-07-15 16:28:20 -04:00
Evan You
03a7a73148
fix(reactivity): ensure computed always expose value
...
fix #3099
Also changes the original fix for #910 by moving the fix from
reactivity to the scheduler
2021-05-27 20:53:21 -04:00
Evan You
b57e995edd
fix(scheduler): handle preFlush cb queued inside postFlush cb
...
fix #3806
2021-05-26 14:21:49 -04:00
Evan You
66b6b4226b
chore: include component info in recursive update warning
2021-04-21 15:20:15 -04:00
edison
bf34e33c90
fix(runtime-core): ensure only skip unflushed job ( #3406 )
2021-03-25 11:13:35 -04:00
HcySunYang
45fae9d308
fix(scheduler): ensure updates are always inserted in ascending id order ( #3184 )
...
fix #2768 , fix #2829
2021-02-25 09:37:25 -05:00
underfin
af9560455d
fix(runtime-core): ensure scheduler queue is always non-null ( #2567 )
...
fix https://github.com/vitejs/vite/issues/1021
2020-11-09 09:19:32 -05:00
Evan You
5c3e8e9840
fix(runtime-core): ensure this context for $nextTick callback
...
fix #2282
2020-10-05 18:18:38 -04:00
Evan You
59e58cd4a5
chore: remove console.log [ci skip]
2020-08-24 21:16:13 -04:00
Evan You
36fa42a88c
fix(runtime-core/scheduler): handle nested flushPostFlushCbs calls
...
fix #1947
2020-08-24 18:47:15 -04:00
Evan You
cfa7636bbe
chore: comments
2020-08-19 18:02:17 -04:00
Necmettin Karakaya
86187ca907
chore: typos ( #1670 )
2020-08-14 17:05:12 -04:00
HcySunYang
caccec3f78
fix(runtime-core/scheduler): sort postFlushCbs to ensure refs are set before lifecycle hooks ( #1854 )
...
fix #1852
2020-08-14 09:50:23 -04:00
Evan You
611437a3fe
fix(runtime-core/scheduler): allow component render functions to trigger itself
...
fix #1801
2020-08-13 17:42:47 -04:00
Evan You
3692f2738f
refactor(runtime-core/scheduler): dedicated preFlush queue
...
properly fix #1763 , #1777 , #1781
2020-08-05 10:55:23 -04:00
Evan You
74a1265fea
chore: remove debugger
2020-08-05 09:32:18 -04:00
Evan You
a0e34cee4a
fix(watch): exhaust pre-flush watchers + avoid duplicate render by pre-flush watchers
...
close #1777
2020-08-04 13:20:23 -04:00
Yang Mingshan
b2a91429ed
fix(runtime-core/scheduler): prevent duplicate queue ( #1767 )
2020-08-03 17:19:06 -04:00