We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391e4db commit 3bfb280Copy full SHA for 3bfb280
src/components/LinkList.js
@@ -41,14 +41,7 @@ class LinkList extends Component {
41
)
42
43
}
44
-
45
- _updateCacheAfterVote = (store, createVote, linkId) => {
46
- const data = store.readQuery({ query: ALL_LINKS_QUERY })
47
- const votedLink = data.allLinks.find(link => link.id === linkId)
48
- votedLink.votes = createVote.link.votes
49
- store.writeQuery({ query: ALL_LINKS_QUERY, data })
50
- }
51
+
52
_getLinksToRender = (isNewPage) => {
53
if (isNewPage) {
54
return this.props.allLinksQuery.allLinks
0 commit comments