-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Component reactivity warning when component is dependency in reactive statement #9082
Comments
I believe this is due to Here's a minimal reproduction: <script>
import Foo from './Foo.svelte';
$: Foo;
</script>
<Foo/> |
FWIW, you can pass a |
Oooh, could it come from here, falsely considering it as a reactive component? I might be wrong but this is wrong anyway because the component in
Is it going to be fixed then? Or should I refactor my code to not make that happen? (If so, how?) |
Describe the bug
I've been having this weird warning about reactivity for one of the external components (SVG as Svelte component) I use from a library:
It's weird because this solution wouldn't work as I cannot pass
class
es to a<svelte:component
as far as I know and it ONLY warns me on this specific line, not the 2 other siblings that have exactly the same structure:As I mentioned, these components (
Window
,CodeBracket
,Sparkles
&DevicePhoneMobile
) are just SVGs in Svelte files from@inqling/svelte-icons
I cannot do anything about and have no need for any reactivity.I don't know if it's a bug or a problem in my code as I'm not a Svelte expert, but it looks like a bug.
Reproduction URL
https://github.com/EmeraldHQ/Website/actions/runs/5790267552/job/15693026456#step:7:20
Reproduction
vite
(sometimes does not appear) orvite build
(100% reliable)Logs
System Info
The text was updated successfully, but these errors were encountered: