Skip to content

Commit

Permalink
Merge pull request #27 from ajcwebdev/main
Browse files Browse the repository at this point in the history
Fixed re-render typo in createTodo comment
  • Loading branch information
thedavidprice authored Aug 12, 2020
2 parents f29069c + f7ae113 commit 6c01f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/AddTodo/AddTodo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const CREATE_TODO = gql`
`
const AddTodo = () => {
const [createTodo] = useMutation(CREATE_TODO, {
// An example of updating Apollo's cache. This will trigger a re-rended of any
// An example of updating Apollo's cache. This will trigger a re-render of any
// affected components, so we don't need to do anything but update the cache.
update: (cache, { data: { createTodo } }) => {
const { todos } = cache.readQuery({ query: TODOS })
Expand Down

0 comments on commit 6c01f7a

Please sign in to comment.