Skip to content

Commit 36fd1d2

Browse files
committed
(chore) - remove logs and keys
1 parent 7ed8e22 commit 36fd1d2

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/components/LinkList.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ const LinkList = props => {
9292
useSubscription({ query: NEW_VOTES_SUBSCRIPTION });
9393
useSubscription({ query: NEW_LINKS_SUBSCRIPTION });
9494

95-
console.log(data && data.feed);
9695
const linksToRender = React.useMemo(() => {
9796
if (!data || !data.feed) {
9897
return [];
@@ -105,7 +104,7 @@ const LinkList = props => {
105104
return rankedLinks;
106105
}
107106
}, [data, isNewPage]);
108-
console.log(linksToRender);
107+
109108
const nextPage = React.useCallback(() => {
110109
if (page <= data.feed.count / 10) {
111110
props.history.push(`/new/${page + 1}`);

src/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ import { FEED_QUERY } from './components/LinkList';
2121
import { getToken } from './token';
2222

2323
const cache = cacheExchange({
24-
keys: {
25-
Feed: data => data.id || null,
26-
Link: data => data.id || null,
27-
Post: data => data.id || null
28-
},
2924
updates: {
3025
Mutation: {
3126
post: ({ post }, _args, cache) => {

0 commit comments

Comments
 (0)