We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5cec6a commit 99721c1Copy full SHA for 99721c1
text/0000-use-mutable-source.md
@@ -30,9 +30,6 @@ const getSnapshot = window => window.location.pathname;
30
31
// This method can subscribe to root level change events,
32
// or more snapshot-specific events.
33
-// In this case, since Example is only reading the "friends" value,
34
-// we only have to subscribe to a change in that value
35
-// (e.g. a "friends" event)
36
//
37
// Because this method doesn't require access to props,
38
// it can be declared in module scope to be shared between components.
@@ -79,7 +76,7 @@ function Example({ onlyShowFamily }) {
79
76
.filter(
80
77
friend => !onlyShowFamily || friend.relationshipType === "family"
81
78
)
82
- .friends.map(friend => friend.id),
+ .map(friend => friend.id),
83
[onlyShowFamily]
84
);
85
0 commit comments