Skip to content

Commit

Permalink
Merge pull request #31 from dac09/fix/loading-flicker
Browse files Browse the repository at this point in the history
Disable fetchPolicy in TodoListCell to prevent flickering
  • Loading branch information
peterp authored Sep 24, 2020
2 parents 357c3e9 + 8fcb626 commit f002c51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/components/TodoListCell/TodoListCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export const Success = ({ todos }) => {
return <SC.List>{list}</SC.List>
}

export const beforeQuery = (props) => ({
variables: props,
})

const SC = {}
SC.List = styled.ul`
padding: 0;
Expand Down

0 comments on commit f002c51

Please sign in to comment.