Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runtime-core): Correct update renders both old and new dynamic child node arrays are empty #7266

Closed
wants to merge 33 commits into from

Conversation

baiwusanyu-c
Copy link
Member

close: #7256

@netlify
Copy link

netlify bot commented Dec 2, 2022

Deploy Preview for vuejs-coverage failed.

Name Link
🔨 Latest commit 53048f6
🔍 Latest deploy log https://app.netlify.com/sites/vuejs-coverage/deploys/63a90339b33a6a0008fb2c6f

(__DEV__ && isHmrUpdating) ||
(dynamicChildren &&
prevDynamicChildren &&
dynamicChildren.length === 0 &&
Copy link
Member

@edison1105 edison1105 Dec 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is incorrect and may lead to unnecessary updates since empty dynamicChildren means no patch is needed in the fast path.
I think we should not track block if the entire node is static.

Copy link

@PraveenNanda124 PraveenNanda124 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work

Copy link

@PraveenNanda124 PraveenNanda124 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@vercel
Copy link

vercel bot commented Apr 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
sfc-playground ⬜️ Ignored (Inspect) Apr 6, 2023 0:44am

@github-actions
Copy link

github-actions bot commented Sep 28, 2023

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 89.5 kB (+12 B) 34 kB (+5 B) 30.7 kB (+13 B)
vue.global.prod.js 147 kB (+82 B) 53.3 kB (+24 B) 47.6 kB (-4 B)

Usages

Name Size Gzip Brotli
createApp 49.8 kB (+12 B) 19.5 kB (+6 B) 17.8 kB (+33 B)
createSSRApp 53.2 kB (+12 B) 20.8 kB (+7 B) 19 kB (+1 B)
defineCustomElement 52.1 kB (+12 B) 20.3 kB (+6 B) 18.5 kB (+11 B)
overall 63.3 kB (+12 B) 24.5 kB (+7 B) 22.2 kB (-48 B)

baiwusanyu-c and others added 2 commits January 3, 2024 11:33
# Conflicts:
#	packages/runtime-core/__tests__/rendererOptimizedMode.spec.ts
#	packages/runtime-core/src/renderer.ts
@yyx990803 yyx990803 closed this in d76dd9c Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Rejected
Development

Successfully merging this pull request may close these issues.

[Bug] When slot is used with v-if, the slot content is not displayed as expected
3 participants