Closed yo1995 closed 1 month ago
Instead of calling Task.detached { await self.load() } in the view model's initializer, call it in the task modifier so it is easier to unit test the method.
Task.detached { await self.load() }
Instead of calling
Task.detached { await self.load() }
in the view model's initializer, call it in the task modifier so it is easier to unit test the method.