Skip to content

Commit 99721c1

Browse files
author
Brian Vaughn
committed
Fixed typos
1 parent b5cec6a commit 99721c1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

text/0000-use-mutable-source.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ const getSnapshot = window => window.location.pathname;
3030

3131
// This method can subscribe to root level change events,
3232
// 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)
3633
//
3734
// Because this method doesn't require access to props,
3835
// it can be declared in module scope to be shared between components.
@@ -79,7 +76,7 @@ function Example({ onlyShowFamily }) {
7976
.filter(
8077
friend => !onlyShowFamily || friend.relationshipType === "family"
8178
)
82-
.friends.map(friend => friend.id),
79+
.map(friend => friend.id),
8380
[onlyShowFamily]
8481
);
8582

0 commit comments

Comments
 (0)