Offers the components of an interface one client to read resources through and write them back with, configured
once where the interface is assembled rather than at every call site, and states whether that client is busy, so
that waiting is shown wherever the interface sees fit.
The client and its status are offered apart, so a component making exchanges never renders as the client gets busy.
Note
The client is a plain fetch function, so anything
expecting one accepts it and anything producing one may replace it:
@metreeca/http provides composable fetch middlewares covering recurring HTTP
concerns, such as authentication, caching or uniform failure reporting.
Shared fetch client.
Offers the components of an interface one client to read resources through and write them back with, configured once where the interface is assembled rather than at every call site, and states whether that client is busy, so that waiting is shown wherever the interface sees fit.
The client and its status are offered apart, so a component making exchanges never renders as the client gets busy.
The client is a plain
fetchfunction, so anything expecting one accepts it and anything producing one may replace it: @metreeca/http provides composable fetch middlewares covering recurring HTTP concerns, such as authentication, caching or uniform failure reporting.