Update node view and support hosted version

This commit is contained in:
Sacha Weatherstone
2021-12-15 21:09:53 +11:00
parent 3873731f43
commit c3a4f81b1c
5 changed files with 54 additions and 40 deletions
+3
View File
@@ -5,6 +5,7 @@ import {
addNode,
addPosition,
addUser,
resetState,
setDeviceStatus,
setLastMeshInterraction,
setMyNodeInfo,
@@ -94,6 +95,8 @@ const registerListeners = (): void => {
}
if (status === Types.DeviceStatusEnum.DEVICE_DISCONNECTED) {
store.dispatch(setReady(false));
store.dispatch(resetState());
cleanupListeners();
}
});