Skip to content

[v2] .map is too eager in creating qrls #7572

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

Closed
wmertens opened this issue May 9, 2025 · 1 comment · Fixed by #7636 or #7637
Closed

[v2] .map is too eager in creating qrls #7572

wmertens opened this issue May 9, 2025 · 1 comment · Fixed by #7636 or #7637
Assignees
Labels

Comments

@wmertens
Copy link
Member

wmertens commented May 9, 2025

export const FooterSocialLinks = component$(() => {
const socialLinks = [
{ href: 'https://qwik.dev/chat', title: 'Discord', Logo: DiscordLogo },
{ href: 'https://github.com/QwikDev/qwik', title: 'GitHub', Logo: GithubLogo },
{ href: 'https://twitter.com/QwikDev', title: 'Twitter', Logo: TwitterLogo },
{ href: 'https://bsky.app/profile/qwik.dev', title: 'Bluesky', Logo: BlueskyLogo },
];
return (
<ul class="flex gap-4 mt-4">
{socialLinks.map(({ title, href, Logo }) => (
<li key={title} class="list-none">
<a href={href} target="_blank" title={title}>
<span>
<Logo width={22} height={22} />
</span>
</a>
</li>
))}
</ul>
);
});

This causes serialization of the icons in the .map()

(at least I think so, there's a warning because of function serialization that we ignore for now)

This was linked to pull requests May 23, 2025
@Varixo Varixo closed this as completed May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants