You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might already exist, but I didn't see it documented and I was not able to find it while doing a brief amount of code exploration.
Essentially, I'd like to be able to get all values fetched as an array without using for await.... This way I can perform fetches for subsequent values in parallel.
constfriends=[];constldFriends=(awaitdata.user.friends).listValue;// <-- List value does not exist currently. Right now, calling value will return only one of the values retreivedconsole.log(ldFriends);awaitPromise.all(ldFriends.map(asyncldFriend=>{console.log(ldFriend.value)try{friends.push({name: (awaitdata[ldFriend.value].vcard_fn).value,webId: ldFriend.value})}catch(err){}}))this.setState({ friends });
The text was updated successfully, but these errors were encountered:
This might already exist, but I didn't see it documented and I was not able to find it while doing a brief amount of code exploration.
Essentially, I'd like to be able to get all values fetched as an array without using
for await...
. This way I can perform fetches for subsequent values in parallel.The text was updated successfully, but these errors were encountered: