How do I use a Solid Store as the data source? #5041
Unanswered
escritorio-gustavo
asked this question in
Q&A
Replies: 1 comment
-
I somewhat answer this question here #5019 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a table component that invokes
createSolidTable
with the following code:This works fine, but if I have data which I keep in a Solid store as such:
This will not update the table when
state.data
is changed throughsetState
unless I usedata={[...state.data]}
, which degrades performance a lot and kinda defeats the point of using a store in the first place.Does anyone know how to make this work without copying the data all the time?
Beta Was this translation helpful? Give feedback.
All reactions