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

feat(runtime-vapor): createSlot #170

Merged
merged 3 commits into from
Apr 14, 2024
Merged

feat(runtime-vapor): createSlot #170

merged 3 commits into from
Apr 14, 2024

Conversation

LittleSound
Copy link
Member

related: #154 (comment)

Copy link

netlify bot commented Mar 26, 2024

Deploy Preview for vapor-template-explorer ready!

Name Link
🔨 Latest commit 22c0538
🔍 Latest deploy log https://app.netlify.com/sites/vapor-template-explorer/deploys/661ba1ed958a1f0008e894e1
😎 Deploy Preview https://deploy-preview-170--vapor-template-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Mar 26, 2024

Deploy Preview for vapor-repl ready!

Name Link
🔨 Latest commit 22c0538
🔍 Latest deploy log https://app.netlify.com/sites/vapor-repl/deploys/661ba1ed3516160008853f89
😎 Deploy Preview https://deploy-preview-170--vapor-repl.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

github-actions bot commented Mar 26, 2024

Size Report

Bundles

File Size Gzip Brotli
compiler-dom.global.prod.js 80 kB 28.1 kB 24.7 kB
compiler-vapor.global.prod.js 49.1 kB 16.8 kB 15.2 kB
runtime-dom.global.prod.js 94.5 kB 35.6 kB 32 kB
runtime-vapor.global.prod.js 42.8 kB (+399 B) 15.9 kB (+164 B) 14.6 kB (+137 B)
vue-vapor.global.prod.js 89.4 kB (+401 B) 31.2 kB (+159 B) 28.3 kB (+160 B)
vue.global.prod.js 152 kB 54.9 kB 49 kB

Usages

Name Size Gzip Brotli
createApp 54.8 kB 21 kB 19.2 kB
createSSRApp 58.1 kB 22.3 kB 20.4 kB
defineCustomElement 57.1 kB 21.8 kB 19.9 kB
vapor 43.1 kB (+397 B) 16 kB (+151 B) 14.6 kB (+123 B)
overall 68.5 kB 26.1 kB 23.6 kB

@LittleSound LittleSound requested a review from sxzz April 6, 2024 10:50
@LittleSound LittleSound marked this pull request as ready for review April 6, 2024 10:51
@LittleSound LittleSound force-pushed the feat/runtime-vapor-createSlot branch from dccd6e3 to 6c99c7a Compare April 6, 2024 15:41
Copy link
Member

@sxzz sxzz left a comment

Choose a reason for hiding this comment

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

LGTM for the rest part

: slot.fn,
)
dynamicSlotKeys[slot.name] = true
renderEffect(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Why change here? slots can be accessed by public API useSlots. So we need to update it before effects from user-land. Just like attrs

https://github.com/vuejs/core-vapor/blob/6c99c7a89d18cfd6db2214ad1c72408354e2ccde/packages/runtime-vapor/src/componentProps.ts#L125

Copy link
Member Author

Choose a reason for hiding this comment

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

When making the modification, I did not take this situation into account, but I have now corrected it.

Maybe we can add a unit test for this feature later?

@sxzz sxzz merged commit 0792656 into main Apr 14, 2024
11 checks passed
@sxzz sxzz deleted the feat/runtime-vapor-createSlot branch April 14, 2024 09:41
This was referenced May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants