Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Problem with ref - SolidJS
S
SolidJS
โข
3y ago
โข
6 replies
Shonty
Problem with ref
Hi
,
I used to set ref like in this example
, but it seems that when I use solidjs router
, it doesn
't work after unmounting and remounting the component
(the ref return undefined
)
.
Is this normal behavior and should I use
createEffect
createEffect
instead of
onMount
onMount
?
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
reference child component as ref?
S
SolidJS / support
13mo ago
Ref
S
SolidJS / support
4y ago
Help with Forward Ref and Ref from solid-primatives
S
SolidJS / support
3y ago
solid/reactivity with component ref
S
SolidJS / support
10mo ago