Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
Ditto
Posts
Comments
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
thanks!
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
gotcha
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
You'd just remove 'c' from the parent's children?
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
No, I meant with the parent prop
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
Can you show how you'd delete a node that way?
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
you'd probably just recreate the whole thing no?
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
something like that
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
person-1, animal-1
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
so you'd have to prefix that somehow
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
you could have both a person and an animal with id 1
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
Imagine I had a tree view component that shows list of People and a list of Animals
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
You'd have to make sure that each "node" has a unique id tho
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
Do you think this is a better approach than using
createMutable
?
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
That seems pretty cool!
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
Can you show how you'd render that?
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
I'm trying to think about how that would work
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
But then wouldn't you have to keep the state in two different shapes?
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
Yeah, I saw someone suggest that before
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
Then each sub-component would have it's own store, but they would only be "views" into a single store
181 replies
S
SolidJS
•
Created by halu on 5/30/2024 in
#support
SOLVED: Trigger Side Effects on a Callbacks Dependency Updates
It would be cool if there was a way to "slice" parts of a store
181 replies