DEV Community

Discussion on: What's something you've changed your mind about?

Collapse
 
lexlohr profile image
Alex Lohr

I thought the main issue of monolithic solutions was composability and that I could solve it, but it turned out the real issue was complexity. I learned that it's better to have simple primitives which work in any context than a complex solution that does that all only in its own context.

I had written a monolithic fetch module for solid-js, aimed at bridging the gap between createResource and tanstack query, but the composability was the second biggest part after caching. The complexity was a foot-gun, so only few people used it.

So I started breaking it up into case-agnostic primitives that can be used for more than just fetch and leave the composition to the developer.