Skip to content

Is there any shallow state? #333

Answered by ryansolid
zhaoyao91 asked this question in Q&A
Discussion options

You must be logged in to vote

I don't have a way currently. Partially around the way my proxy solution works. I do find my self hand creating getter objects from time to time to wrap signals but no dynamic shallow proxy solution as of yet. Curious in the use case. Solid's state objects do create the signals lazily so in non-tracked contexts they don't create signals. So only the properties used ever get tracked. I'm gathering some scenario where you want to never track some nested property anywhere.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@zhaoyao91
Comment options

@ryansolid
Comment options

@zhaoyao91
Comment options

@ryansolid
Comment options

@zhaoyao91
Comment options

Answer selected by ryansolid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants