gbv / cocoda-sdk

SDK for Cocoda and coli-conc services
https://gbv.github.io/cocoda-sdk/
MIT License
5 stars 1 forks source link

`registryForScheme`: Use a cache for initialized registries #42

Closed stefandesu closed 2 years ago

stefandesu commented 2 years ago

If two schemes use the same API, they should also be assigned the same registry object so that the initialization of that registry (which involved making a request to its /status endpoint) is not performed multiple times. See also the implementation in BARTOC (which should be replaced by this): https://github.com/gbv/bartoc.org/blob/main/vue/utils.js