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

[Bug?]: The same stylesheet appear above html element when use props.children to render #1704

Open
2 tasks done
will-chc opened this issue Jan 3, 2025 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@will-chc
Copy link

will-chc commented Jan 3, 2025

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

In SolidStart SSR, when using {props.children}, styles repeatedly appear in the body, with SCSS being included multiple times as <style> or tags.
image

This issue occurs in the SolidStart "basic" template.

image

Expected behavior 🤔

No response

Steps to reproduce 🕹

Steps:

Context 🔦

No response

Your environment 🌎

No response

@will-chc will-chc added the bug Something isn't working label Jan 3, 2025
@will-chc
Copy link
Author

will-chc commented Jan 6, 2025

image
This issue causes the CSS style debugging in devtools to be ineffective. The duplicate styles must be deleted in order for the changes to take effect.

@will-chc
Copy link
Author

will-chc commented Jan 6, 2025

it’s related to Vite HMR! I tried removing all stylesheets outside of the “head” and that caused vite css hmr to stop working
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant