function createRemoteCollection(fetchEndpoint) { let _cache return async () => { if (_cache) return _cache const res = await fetch(fetchEndpoint).then(r => r.json()) _cache = res return res } } export const collections = { }