Skip to content

Commit 8076bea

Browse files
authored
Update part8e.md
Added client property to onData callback to clarify where client.cache came from
1 parent 2954024 commit 8076bea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/8/en/part8e.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,9 @@ const App = () => {
768768
// ...
769769

770770
useSubscription(PERSON_ADDED, {
771-
onData: ({ data }) => {
771+
// highlight-start
772+
onData: ({ data, client }) => {
773+
// highlight-end
772774
const addedPerson = data.data.personAdded
773775
notify(`${addedPerson.name} added`)
774776

0 commit comments

Comments
 (0)