Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

New post race condition #79

Open
schwa opened this issue Nov 26, 2022 · 1 comment
Open

New post race condition #79

schwa opened this issue Nov 26, 2022 · 1 comment

Comments

@schwa
Copy link
Owner

schwa commented Nov 26, 2022

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
Copy link
Owner Author

schwa commented Nov 26, 2022

Workaround is disable state restoration in Xcode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Focus
Development

No branches or pull requests

1 participant