From 5910bfffd416ee6dbdf4959c90564498118b98b3 Mon Sep 17 00:00:00 2001 From: Laurent Date: Wed, 11 Jun 2025 15:10:28 +0200 Subject: [PATCH] fix data getting pending when unnecessary --- LeStorage/StoredCollection.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/LeStorage/StoredCollection.swift b/LeStorage/StoredCollection.swift index ea3e9bd..75ec146 100644 --- a/LeStorage/StoredCollection.swift +++ b/LeStorage/StoredCollection.swift @@ -179,6 +179,7 @@ public class StoredCollection: SomeCollection { if FileManager.default.fileExists(atPath: fileURL.path()) { let jsonString: String = try FileUtils.readFile(fileURL: fileURL) let decoded: [T] = try jsonString.decodeArray() ?? [] + self.hasLoaded = true // avoid pending management self.setItems(decoded) } await MainActor.run {