From 14d6ac99540de3572fbd92c5d08236c4b276fd1c Mon Sep 17 00:00:00 2001 From: srgooglo Date: Sun, 29 May 2022 18:26:55 +0200 Subject: [PATCH] added initialization steps finish events --- packages/app/src/App.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx index 9aaabbd5..7f6d4018 100644 --- a/packages/app/src/App.jsx +++ b/packages/app/src/App.jsx @@ -314,6 +314,8 @@ class App extends React.Component { async () => { try { await app.ApiController.attachAPIConnection() + + app.eventBus.emit("app.initialization.api_success") } catch (error) { app.eventBus.emit("app.initialization.api_error", error) @@ -326,6 +328,8 @@ class App extends React.Component { async () => { try { await this.__SessionInit() + + app.eventBus.emit("app.initialization.session_success") } catch (error) { app.eventBus.emit("app.initialization.session_error", error) @@ -338,6 +342,8 @@ class App extends React.Component { async () => { try { await this.__UserInit() + + app.eventBus.emit("app.initialization.user_success") } catch (error) { app.eventBus.emit("app.initialization.user_error", error) @@ -350,6 +356,8 @@ class App extends React.Component { async () => { try { await this.__WSInit() + + app.eventBus.emit("app.initialization.ws_success") } catch (error) { app.eventBus.emit("app.initialization.ws_error", error)