Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Show component appears to re-run my custom component each time I toggle it - SolidJS
S
SolidJS
•
2mo ago
•
4 replies
anvad
Show component appears to re-run my custom component each time I toggle it
💙
Beginner
I think there is a gap in my understanding
. Here
's a link to the playground
:
https://playground.solidjs.com/anonymous/3eefa245-df3f-417d-867b-c73aad32113e
I expected my
LogoutButton
LogoutButton
component to run only
once
.
However
, I see the
console.log()
console.log()
within that component is executing each time the
Show
Show
component
's
when
when
prop is toggled on
.
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
SolidJS
Join
Solid is a declarative reactive Javascript library for creating user interfaces.
12,274
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Run code on component becoming visible for first time
S
SolidJS / support
3y ago
Child Component not Re-rendering
S
SolidJS / support
15mo ago