React user confused on how to work with createResource response
Hey Guys i feel like im missing a fundamental thing here. it works but it looks very weird. Is there a better pattern for this?
Basically data is an Array. I now want 1 random children to display
3 Replies

Loading all the quotes without caching just to display one quote seems wasteful.
https://github.com/solidjs-community/solid-primitives/tree/main/packages/resource#makecache should help here.
GitHub
solid-primitives/packages/resource at main · solidjs-community/soli...
A library of high-quality primitives that extend SolidJS reactivity. - solid-primitives/packages/resource at main · solidjs-community/solid-primitives