Saving an object with an array of PFFiles halts UI.
Steps to reproduce
Create a struct with [ParseFile]
Create a new object and set files
Calling object.save will hold the main thread
Here is my code:
event.images = images
Utils.loading(message: "Saving event")
event.save { result in
switch result {
case .success(_):
Utils.done()
case .failure(let error):
Utils.error(error: error)
}
}
🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
New Issue Checklist
Issue Description
Saving an object with an array of PFFiles halts UI.
Steps to reproduce
object.save
will hold the main threadHere is my code:
https://user-images.githubusercontent.com/4974769/132307398-37f71f26-d457-45fe-9439-53516befb24e.mov
Actual Outcome
UI thread is held
Expected Outcome
UI not to hold.
Environment
Client
1.9.4
12.4
iOS
14.4
Server
master
Ubuntu
AWS
Database
MongoDB
4.5
Atlas
Logs