Skip to content

Commit

Permalink
graphql: fix anti-caching trick to workaround Apollo bug with network…
Browse files Browse the repository at this point in the history
…-only fetchPolicy

see apollographql/react-apollo#556
  • Loading branch information
mimecuvalo committed May 9, 2019
1 parent 74d63c1 commit c760c3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/dashboard/Feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import styles from './Dashboard.module.css';
offset: 0,
query,
shouldShowAllItems,
antiCache: +new Date(), // XXX(mime): see https://github.com/apollographql/react-apollo/issues/556
},
fetchPolicy: didFeedLoad ? 'network-only' : 'cache-first',
}),
Expand Down

0 comments on commit c760c3b

Please sign in to comment.