Skip to content

Commit

Permalink
Updating asynchronous-data-queries.md (facebookexperimental#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdhcode authored Jun 25, 2020
1 parent df5b754 commit 7a9fb69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/guides/asynchronous-data-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const friendsInfoQuery = selector({
const friendLoadables = get(waitForNone(
friendList.map(friendID => userInfoQuery(friendID))
));
return friends
return friendLoadables
.filter(({state}) => state === 'hasValue')
.map(({contents}) => contents);
},
Expand Down

0 comments on commit 7a9fb69

Please sign in to comment.