Skip to content

Commit

Permalink
update to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ymc9 committed Apr 24, 2024
1 parent 4a4e085 commit d7afb7b
Show file tree
Hide file tree
Showing 14 changed files with 1,928 additions and 5,474 deletions.
4 changes: 2 additions & 2 deletions components/Todo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ type Props = {
};

export default function TodoComponent({ value, optimistic }: Props) {
const { mutate: updateTodo } = useUpdateTodo(undefined, true, true); // optimistic
const { mutate: deleteTodo } = useDeleteTodo(undefined, true, true); // optimistic
const { mutate: updateTodo } = useUpdateTodo({ optimisticUpdate: true });
const { mutate: deleteTodo } = useDeleteTodo({ optimisticUpdate: true });

const onDelete = () => {
deleteTodo({ where: { id: value.id } });
Expand Down
Loading

0 comments on commit d7afb7b

Please sign in to comment.