Webatrice: show loading screen until protobuf initializes (#4559)

* show loading screen until protobuf initializes

* cleanup

Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
Jeremy Letto 2022-02-04 16:03:39 -06:00 committed by GitHub
parent bb16ae09ef
commit 6928a2bd98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 178 additions and 4 deletions

View file

@ -6,6 +6,7 @@ import { ServerState } from './server.interfaces'
import { Types } from './server.types';
const initialState: ServerState = {
initialized: false,
buddyList: [],
ignoreList: [],
@ -33,6 +34,12 @@ const initialState: ServerState = {
export const serverReducer = (state = initialState, action: any) => {
switch (action.type) {
case Types.INITIALIZED: {
return {
...initialState,
initialized: true
}
}
case Types.CLEAR_STORE: {
return {
...initialState,