MastodonAgain icon indicating copy to clipboard operation
MastodonAgain copied to clipboard

New post race condition

Open schwa opened this issue 3 years ago • 1 comments

If the app relaunches with the New Post screen visible (which can happen if you quit app with it on screen) the weird way windows work in SwiftUI causes a race condition with loading SignIn data.

SignIn data is loaded asynchronously (because Storage.get is async) but the New Post screen expects a current sign-in to be defined.

schwa avatar Nov 26 '22 05:11 schwa

Workaround is disable state restoration in Xcode.

schwa avatar Nov 26 '22 05:11 schwa