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: avoid referring to complex types in props #123

Merged
merged 2 commits into from
Dec 17, 2022

Conversation

antfu
Copy link
Member

@antfu antfu commented Dec 16, 2022

to workaround the compatibility with nuxt-component-meta

Resolves nuxtlabs/studio-app#289

This is because nuxt-component-meta expanded the type entirely in the schema, creating 150MB of objects that have been duplicated a few times, causing the memory overflow.

The root fix should be done on the nuxt-component-meta side, but it takes some research. Workaround here to make it non-blocking.

to workaround the compatibility with nuxt-component-meta

fix nuxtlabs/studio-app#289
@vercel
Copy link

vercel bot commented Dec 16, 2022

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

Name Status Preview Updated
ui ✅ Ready (Inspect) Visit Preview Dec 16, 2022 at 5:17PM (UTC)

@netlify
Copy link

netlify bot commented Dec 16, 2022

Deploy Preview for nuxthq-ui canceled.

Name Link
🔨 Latest commit a61838e
🔍 Latest deploy log https://app.netlify.com/sites/nuxthq-ui/deploys/639ca7f07ef8180008c3fe75

@@ -47,7 +47,7 @@ const props = defineProps({
default: () => $ui.contextMenu.transition
},
popperOptions: {
type: Object as PropType<PopperOptions>,
type: Object,
Copy link
Member

@benjamincanac benjamincanac Dec 16, 2022

Choose a reason for hiding this comment

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

Why remove the PopperOptions type here? It's also defined in Dropdown, SelectCustom, Popover and Tooltip. Should we remove them all?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it's a non-issue. Reverted

@benjamincanac benjamincanac merged commit ff9f6c2 into dev Dec 17, 2022
@benjamincanac benjamincanac deleted the fix/nuxt-component-meta-compact branch December 17, 2022 15:56
benjamincanac added a commit that referenced this pull request Jul 24, 2024
#123)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
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