File tree 2 files changed +1
-7
lines changed
2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ const LinkList = props => {
92
92
useSubscription ( { query : NEW_VOTES_SUBSCRIPTION } ) ;
93
93
useSubscription ( { query : NEW_LINKS_SUBSCRIPTION } ) ;
94
94
95
- console . log ( data && data . feed ) ;
96
95
const linksToRender = React . useMemo ( ( ) => {
97
96
if ( ! data || ! data . feed ) {
98
97
return [ ] ;
@@ -105,7 +104,7 @@ const LinkList = props => {
105
104
return rankedLinks ;
106
105
}
107
106
} , [ data , isNewPage ] ) ;
108
- console . log ( linksToRender ) ;
107
+
109
108
const nextPage = React . useCallback ( ( ) => {
110
109
if ( page <= data . feed . count / 10 ) {
111
110
props . history . push ( `/new/${ page + 1 } ` ) ;
Original file line number Diff line number Diff line change @@ -21,11 +21,6 @@ import { FEED_QUERY } from './components/LinkList';
21
21
import { getToken } from './token' ;
22
22
23
23
const cache = cacheExchange ( {
24
- keys : {
25
- Feed : data => data . id || null ,
26
- Link : data => data . id || null ,
27
- Post : data => data . id || null
28
- } ,
29
24
updates : {
30
25
Mutation : {
31
26
post : ( { post } , _args , cache ) => {
You can’t perform that action at this time.
0 commit comments