쿼리 키
import type { Ref } from 'vue'
function useTodos(todoId: Ref<string>) {
const queryKey = ['todos', todoId]
return useQuery({
queryKey,
queryFn: () => fetchTodoById(todoId.value),
})
}
import type { Ref } from 'vue'
function useTodos(todoId: Ref<string>) {
const queryKey = ['todos', todoId]
return useQuery({
queryKey,
queryFn: () => fetchTodoById(todoId.value),
})
}