File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -114,12 +114,15 @@ class LinkList extends Component {
114
114
}
115
115
}
116
116
` ,
117
- updateQuery : ( previous , { subscriptionData } ) => {
118
- const newAllLinks = [ subscriptionData . data . newLink . node , ...previous . feed . links ]
117
+ updateQuery : ( previous , { subscriptionData } ) => {
118
+ const newAllLinks = [
119
+ subscriptionData . data . newLink . node ,
120
+ ...previous . feed . links ,
121
+ ]
119
122
const result = {
120
123
...previous ,
121
124
feed : {
122
- links : newAllLinks
125
+ links : newAllLinks ,
123
126
} ,
124
127
}
125
128
return result
@@ -157,14 +160,6 @@ class LinkList extends Component {
157
160
}
158
161
}
159
162
` ,
160
- updateQuery : ( previous , { subscriptionData } ) => {
161
- const newAllLinks = previous . feed . links . slice ( )
162
- const result = {
163
- ...previous ,
164
- allLinks : newAllLinks ,
165
- }
166
- return result
167
- } ,
168
163
} )
169
164
}
170
165
}
You can’t perform that action at this time.
0 commit comments