Commit Graph

121 Commits

Author SHA1 Message Date
Evan You 2a0cfc03b8
chore: warn vapor hydration for now 2025-02-08 15:06:27 +08:00
Evan You be5c2a2f51
wip: vdom in vapor hmr reload 2025-02-04 22:44:17 +08:00
edison da7ad5e3d2
fix(ssr): avoid updating subtree of async component if it is resolved (#12363)
close #12362
2024-11-15 22:11:21 +08:00
linzhe a20a4cb36a
fix(hydration): the component vnode's el should be updated when a mismatch occurs. (#12255)
close #12253
2024-11-15 18:18:58 +08:00
edison f1a4f67aed
fix(transition/ssr): make transition appear work with Suspense in SSR (#12047)
close #12046
2024-10-11 10:34:28 +08:00
Boshen 5d9e81d3da
chore(types): disambiguate the `Comment` type in hydration.ts (#12009) 2024-09-24 18:00:39 +08:00
Evan You a5f3c2eb4d
fix(hydration): fix mismatch of leading newline in <textarea> and <pre>
close #11873
close #11874
2024-09-13 21:24:59 +08:00
edison ca12e776bc
fix(hydration): escape css var name to avoid mismatch (#11739)
close #11735
2024-09-03 08:25:00 +08:00
edison c756da24b2
fix(hydration): handle text nodes with 0 during hydration (#11772)
close #11771
2024-09-02 17:09:38 +08:00
Evan You 90caac473d
test(custom-element): test custom element hydration w/ declarative shadow dom 2024-08-10 16:39:20 +08:00
Kevin Deng 三咲智子 928af5fe2f
refactor(types): enable `isolatedDeclarations` (#11178) 2024-08-08 23:05:21 +08:00
Evan You eaf5455d77
chore: Merge branch 'main' into minor 2024-08-07 18:25:58 +08:00
Evan You 7d473b7721
fix(hydration): force hydrate custom element dynamic props
close #7203
close #8038
2024-08-06 15:58:45 +08:00
Evan You d14a11c1cd
feat: lazy hydration strategies for async components (#11458) 2024-07-31 12:14:51 +08:00
Evan You 94fb2b8106
feat(hydration): support suppressing hydration mismatch via data-allow-mismatch 2024-07-25 11:22:27 +08:00
Evan You f15ba2c2e2
chore: Merge branch 'main' into minor 2024-07-17 17:32:31 +08:00
linzhe 3e9e32ee0a
fix(runtime-dom): properly handle innerHTML unmount into new children (#11159)
close #9135
2024-07-17 16:37:14 +08:00
Evan You c10e40a217
fix(hydration): fix tracking of reactive style objects in production
close #11372
2024-07-17 12:14:25 +08:00
Evan You f44c3b37d4
fix(hydration): handle consectuvie text nodes during hydration
close #7285
close #7301
2024-07-16 11:09:00 +08:00
Evan You 7d06ca3a83
chore: Merge branch 'main' into minor 2024-06-22 21:05:15 +08:00
Evan You a959781dd6
fix(runtime-core): update devtool __vnode on patch, avoid memory leak during dev
close #11192
2024-06-22 20:54:46 +08:00
Evan You 3169c91493
fix(hydration): skip prop mismatch check for directives that mutate DOM in created
close #11189
2024-06-22 18:05:45 +08:00
yangxiuxiu 7ad67ced26
fix(hydration): fix css vars hydration mismatch false positive on attr-fallthrough (#11190)
close #11188
2024-06-22 17:49:25 +08:00
Evan You 26356264d2
chore: Merge branch 'main' into minor 2024-06-14 12:32:28 +02:00
Rodrigo Pimentel 5afc76c229
fix(hydration): log hydration error even when using async components (#9403)
close #9369
2024-06-07 15:45:16 +08:00
Evan You cd0ea0d479
fix(compiler-core): change node hoisting to caching per instance (#11067)
close #5256
close #9219
close #10959
2024-06-04 20:09:54 +08:00
Kevin Deng 三咲智子 cdb1d1795d
chore: disallow optional chaining (#10919) 2024-05-29 15:03:20 +08:00
edison d1011c07a9
fix(ssr): fix hydration for node with empty text node (#7216) 2024-05-27 16:50:49 +08:00
Evan You f2c1412e46
fix(hydration): handle edge case of style mismatch without style attribute
ref #10786
2024-05-06 15:38:16 -07:00
edison 2ec06fd6c8
fix(hydration): properly handle optimized mode during hydrate node (#10638)
close #10607
2024-04-15 21:23:30 +08:00
Divyansh Singh 0dea7f9a26
fix(runtime-core): show hydration mismatch details for non-rectified mismatches too when __PROD_HYDRATION_MISMATCH_DETAILS__ is set (#10599) 2024-04-02 16:36:52 +08:00
Evan You 995d2fdcca fix(hydration): fix css vars hydration mismatch false positive on non-root nodes
close #10317
test case from #10325
2024-02-13 18:00:23 +08:00
yangxiuxiu f0b5f7ed8d
fix(hydration): fix SFC style v-bind hydration mismatch warnings (#10250)
close #10215
2024-02-06 17:38:41 +08:00
Evan You 81d307a1e9 refactor: use shared isAttrRenderable logic between ssr and hydration 2024-01-18 11:23:59 +08:00
Evan You d16a2138a3 fix(hydration): fix incorect mismatch warning for option with non-string value and inner text
close 10140
2024-01-18 11:20:32 +08:00
zhoulixiang 08b60f5d0d
fix(hydration): improve mismatch when client valut is null or undefined (#10086) 2024-01-12 17:50:26 +08:00
Evan You 3907c87ce2 fix(hydration): should not warn on falsy bindings of non-property keys 2024-01-11 21:07:41 +08:00
Evan You dcc68ef7d4 fix(hydration): do not warn against bindings w/ object values 2024-01-11 16:18:00 +08:00
Evan You 5af3987291 fix(hydration): fix class and style hydration mismatch message
close #10067
2024-01-11 00:49:46 +08:00
Evan You 972facee0d fix(hydration): improve attr hydration mismatch check for boolean attrs
close #10057
close #10060
2024-01-10 14:14:47 +08:00
zhoulixiang 2701355e8e
fix(hydration): avoid hydration mismatch warning for styles with different order (#10011)
close #10000
close #10006
2024-01-08 16:36:27 +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
Evan You e585b0db43 fix(ssr): avoid hydration mismatch warning for classes with different order 2023-12-20 10:48:01 +08:00
Evan You e8448b018d fix(ssr): fix hydration prop mismatch check for class on SVG elements 2023-12-19 18:09:42 +08:00
Evan You 33159a5916 fix(hydration): should not warn mismatch for nullish prop 2023-12-13 02:41:49 +08:00
Evan You f41fd86d5f fix(hydration): swap client/server labels for hydration mismatch warnings
this was swapped in #9098 but lost when merging #5953
2023-12-12 20:05:49 +08:00
Fabian Gündel d42b6ba3f5
feat: MathML support (#7836)
close #7820
2023-12-08 18:25:01 +08:00
Divyansh Singh bc7698dbfe
feat(ssr): add `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__` feature flag (#9550) 2023-12-08 16:41:15 +08:00
Evan You 2ffc1e8cfd
feat(ssr): improve ssr hydration mismatch checks (#5953)
- Include the actual element in the warning message
- Also warn class/style/attribute mismatches

Note: class/style/attribute mismatches are check-only and will not be
rectified.

close #5063
2023-12-08 15:49:09 +08:00
ZHAO Jin-Xiang fff7b864f4
feat: use enum to replace const enum (#9261)
close #1228
2023-11-29 12:24:50 +08:00