We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71769fc commit 5127636Copy full SHA for 5127636
ExampleMVVM/Data/Repositories/DefaultMoviesRepository.swift
@@ -31,7 +31,7 @@ extension DefaultMoviesRepository: MoviesRepository {
31
cache.getResponse(for: requestDTO) { result in
32
33
if case let .success(responseDTO?) = result {
34
- cached(responseDTO.toDomain())
+ DispatchQueue.main.async { cached(responseDTO.toDomain()) }
35
}
36
guard !task.isCancelled else { return }
37
0 commit comments