Add loading indicator to discover page, add deploy directions to readme

This commit is contained in:
Jon Staab
2024-11-14 15:43:55 -08:00
parent 8caab03e2f
commit e6483d36b2
8 changed files with 126 additions and 25 deletions
+2 -9
View File
@@ -167,15 +167,8 @@ export const loadUserData = (
return promise
}
export const discoverRelays = (lists: List[]) => {
const urls = uniq(lists.flatMap(getRelayUrls))
for (const url of urls) {
if (isShareableRelayUrl(url)) {
loadRelay(url)
}
}
}
export const discoverRelays = (lists: List[]) =>
Promise.all(uniq(lists.flatMap(getRelayUrls)).filter(isShareableRelayUrl).map(loadRelay))
// Synchronization