Hi,
I’m using Observable Framework to build some dashboards that consumes some json api from an external site.
I have a data loader ./src/products/[category]/data.json.ts
that essentially pulls the data from the api. A couple of MB.
I don’t need all that data in the client, so I would rather have a data loader ./src/products/[category]/stats.json.ts
that would consume the ./data.json of that category.
This would allow other data loaders to exist that could also depend on the ./data.json. So effectively building a processing pipeline using data loaders, leveraging the cache to download MBs of api data only once on build time, and sending just the needed bits to the client by having specific data loaders.
Given the answer at Observable Framework Data Loader with local csv file - #2 by mbostock I assume this is not possible, right?
Without adding an ad-hoc cache of the api, how would you structure a project to avoid requesting multiple times the api?