Adapting a list of objects to signals
I've got an API that returns a list of objects like
I fetch this data using
The problem comes when I invalidate the resource and re-fetch it, all of the
Does solid provide any tools for mapping data like this into signals so that my components can be reactive to it?
I fetch this data using
useResource and I render it out with a tree of components likeThe problem comes when I invalidate the resource and re-fetch it, all of the
Result components get re-rendered from scratch, because the objects are different. And even if the objects were the "same" then they wouldn't update properly because props.result.value isn't a signal.Does solid provide any tools for mapping data like this into signals so that my components can be reactive to it?
