SolidJSS
SolidJSโ€ข3y agoโ€ข
3 replies
bigmistqke

granularly derived store

My use-case:
I have an array of coordinates as input. For each coordinate I want to keep a set of offsets. The input can change, coordinates can get removed or added to the array.

I contorted something together with mapArray https://playground.solidjs.com/anonymous/981e35fd-a794-479e-a8dd-777306b24a87 but I wonder if there isn't something a bit more elegant/primitive-y to do the same.
Quickly discover what the solid compiler will generate from your JSX template
Was this page helpful?