Update with more optimistic updates
This commit is contained in:
@@ -21,7 +21,9 @@ export const TodoItem: FC<TodoItemProps> = (props) => {
|
||||
<div
|
||||
className="py-3 border-b border-gray-300 dark:border-gray-600 relative"
|
||||
onMouseEnter={() => {
|
||||
prefetchTodo(props.todo.id);
|
||||
if (!props.todo.id.startsWith("temp")) {
|
||||
prefetchTodo(props.todo.id);
|
||||
}
|
||||
setIsHovering(true);
|
||||
}}
|
||||
onMouseLeave={() => setIsHovering(false)}
|
||||
|
Reference in New Issue
Block a user