API Error on Import
lazarust opened this issue · comments
Is there a reason the API is pinged when importing the library? It seems a little weird and has caused some issues for me when running tests. Thanks!
The library fetches the current copy of the metadata upon import, and uses this to structure the API. it's part of the design: we don't want to mirror or maintain duplicates of the main API metadata endpoints.
I suppose, strictly speaking, it doesn't have to be fetched on import, but rather could be pushed down into the first (if any) call to explorer.available()
& cached once fetched.
Happy to merge any contribution to do this!
@ljwolf Could you point me to where that initial API fetch is? I'm having trouble finding it. Thanks 👍🏽