Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 85d7c13

Browse files
feat: remove hide app until load
Signed-off-by: peterpeterparker <[email protected]>
1 parent d7e326c commit 85d7c13

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

studio/src/app/app-root.scss

Lines changed: 0 additions & 8 deletions
This file was deleted.

studio/src/app/app-root.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Component, Element, h, Listen, State} from '@stencil/core';
1+
import {Component, Element, h, Listen} from '@stencil/core';
22

33
import {toastController} from '@ionic/core';
44

@@ -17,8 +17,7 @@ import {LangService} from './services/lang/lang.service';
1717
import {initSyncState} from './providers/sync/sync.provider';
1818

1919
@Component({
20-
tag: 'app-root',
21-
styleUrl: 'app-root.scss'
20+
tag: 'app-root'
2221
})
2322
export class AppRoot {
2423
@Element() el: HTMLElement;
@@ -28,9 +27,6 @@ export class AppRoot {
2827
private readonly settingsService: SettingsService;
2928
private readonly langService: LangService;
3029

31-
@State()
32-
private loading: boolean = true;
33-
3430
private destroyErrorListener;
3531
private destroyNavListener;
3632
private destroyShareListener;
@@ -62,8 +58,6 @@ export class AppRoot {
6258
}
6359

6460
async componentDidLoad() {
65-
this.loading = false;
66-
6761
this.destroyErrorListener = errorStore.onChange('error', (error: string | undefined) => {
6862
if (error && error !== undefined) {
6963
this.toastError(error);
@@ -175,7 +169,7 @@ export class AppRoot {
175169
*/
176170
render() {
177171
return [
178-
<ion-app class={this.loading ? 'loading' : undefined}>
172+
<ion-app>
179173
<ion-router useHash={false}>
180174
<ion-route url="/" component="app-editor" />
181175

0 commit comments

Comments
 (0)