Skip to content

fix: migrate ConsoleLine to svelte 5 to show the right count for duplicate logs #1434

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

Merged
merged 2 commits into from
Jul 28, 2025

Conversation

paoloricciuti
Copy link
Member

This has been bugging me for a while...if you have duplicate logs the counter doesn't actually go up...the reason is that ConsoleLine is a svelte 4 component using Log which is a svelte 5 class.

Well at least it was before this PR 😄

A note on documentation PRs

If this is a documentation PR (i.e. changing content within apps/svelte.dev/content/docs), then this is the wrong repository to make those changes. The content in this folder is synced from other repositories. Therefore, these changes should be made in their respective repositories (at https://github.com/sveltejs/svelte or https://github.com/sveltejs/kit, or example).

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time.
  • Prefix your PR title with feat:, fix:, chore:, or docs:.
  • This message body should clearly illustrate what problems it solves.

Co-authored-by: Rich Harris <[email protected]>
Copy link

vercel bot commented Jul 28, 2025

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

Name Status Preview Updated (UTC)
svelte-dev ✅ Ready (Inspect) Visit Preview Jul 28, 2025 3:34pm

@Rich-Harris Rich-Harris merged commit 30fe5a0 into main Jul 28, 2025
4 checks passed
@Rich-Harris Rich-Harris deleted the fix-log-counter branch July 28, 2025 16:47
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