Skip to content

Any tip/checklist to debug Solid components when it refuses to react the signal changed? #2336

Answered by ngdangtu-vn
ngdangtu-vn asked this question in Q&A
Discussion options

You must be logged in to vote

Solutions: https://discord.com/channels/722131463138705510/1297035304829587456

REEEEE — 19/10/2024 10:30 AM
Unlike React, Solid components don't rerender so your early return in the component will fire and the component won't be updated
Use a Show instead to change what to display depending on a condition

Kooki Kodes — 19/10/2024 10:39 PM
Yeah, there's also the: components if you have several conditions.

Kooki Kodes — 20/10/2024 at 8:57 PM
Well because there is no virtual dom, there's not really an easy solution per say. Maybe it'd help to look at the source code of the component so you could get an idea of how it's properly done.
You'd most likely end up with a similar solution. You…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ngdangtu-vn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant