How to trigger a Cell refresh?

Not entirely sure, but my hunch is that Apollo is reading your query results from its cache.

You’ll want to change the fetchPolicy for this query: https://www.apollographql.com/docs/react/api/react-apollo/#optionsfetchpolicy

You can export a beforeQuery next to your QUERY to enable this. This is also the default behaviour generated for scaffolds!

export const beforeQuery = (props) => {
  return { variables: props, fetchPolicy: 'cache-and-network' }
}
5 Likes