SolidJSS
SolidJSโ€ข3y agoโ€ข
1 reply
cerealklr

Resource chaining and other promise-like composition

With raw Promises, there are a number of ways to compose them usefully, e.g. .then() for value transformation, Promise.all() for orchestration, etc. Scanning through the docs, I wasn't able to find anything similar for resources. That means that if I have a higher-order caching library that returns Resources, there's no way to functionally compose those results.

Am I missing something? If not, is this something I can provide a wrapper for as a user without breaking solid's reactivity model? Or barring that, is this reasonable to consider as a feature request?
Was this page helpful?