Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Improve start up #2107

Merged
merged 1 commit into from
Jul 22, 2024
Merged

refactor: Improve start up #2107

merged 1 commit into from
Jul 22, 2024

Conversation

NigelBreslaw
Copy link
Owner

This change creates a new state variable 'appReady'. This is true when the state has hydrated and both the custom item defintion and bungie definitions have all successfully been downloaded or on app restart loaded.

The MainDrawer UI will not be shown till the app is ready making it impossible for the auto refresh or manual refresh to be activated.

The splash screen is then only hidden when the app is ready. And exception to this is when the app is not authenticated. In this case the splash is dimissed and then the login screen is shown.

This change creates a new state variable 'appReady'. This is true when the state has hydrated and both the custom item defintion and bungie definitions have all successfully been downloaded or on app restart loaded.

The MainDrawer UI will not be shown till the app is ready making it impossible for the auto refresh or manual refresh to be activated.

The splash screen is then only hidden when the app is ready. And exception to this is when the app is not authenticated. In this case the splash is dimissed and then the login screen is shown.
@NigelBreslaw NigelBreslaw merged commit b829565 into main Jul 22, 2024
2 checks passed
@NigelBreslaw NigelBreslaw deleted the Virtual-branch branch July 22, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant