diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b52e4b9..9a04631 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -109,7 +109,6 @@ const reducer = (state: State, action: Action): State => { throw new Error(); } }; - const App = () => { const [state, dispatch] = useReducer(reducer, null); const stateRef = useRef(state); // Declare a reference to hold the current state @@ -150,7 +149,11 @@ const App = () => { socket.on('disconnect', () => { setConnectionStatus('disconnected'); setTimeout(() => { - setConnectionStatus('reconnecting'); + // Only set "reconnecting" is the state is still "disconnected" + // E.g. when the client has already reconnected + setConnectionStatus((currentState) => + currentState === 'disconnected' ? 'reconnecting' : currentState + ); }, 2000); }); diff --git a/src/pydase/frontend/asset-manifest.json b/src/pydase/frontend/asset-manifest.json index ff1c535..30118a5 100644 --- a/src/pydase/frontend/asset-manifest.json +++ b/src/pydase/frontend/asset-manifest.json @@ -1,13 +1,13 @@ { "files": { "main.css": "/static/css/main.c444b055.css", - "main.js": "/static/js/main.964bc334.js", + "main.js": "/static/js/main.16698eff.js", "index.html": "/index.html", "main.c444b055.css.map": "/static/css/main.c444b055.css.map", - "main.964bc334.js.map": "/static/js/main.964bc334.js.map" + "main.16698eff.js.map": "/static/js/main.16698eff.js.map" }, "entrypoints": [ "static/css/main.c444b055.css", - "static/js/main.964bc334.js" + "static/js/main.16698eff.js" ] } \ No newline at end of file diff --git a/src/pydase/frontend/index.html b/src/pydase/frontend/index.html index a64c694..a65539d 100644 --- a/src/pydase/frontend/index.html +++ b/src/pydase/frontend/index.html @@ -1 +1 @@ -pydase App
\ No newline at end of file +pydase App
\ No newline at end of file diff --git a/src/pydase/frontend/static/js/main.964bc334.js b/src/pydase/frontend/static/js/main.16698eff.js similarity index 97% rename from src/pydase/frontend/static/js/main.964bc334.js rename to src/pydase/frontend/static/js/main.16698eff.js index f48699c..6069635 100644 --- a/src/pydase/frontend/static/js/main.964bc334.js +++ b/src/pydase/frontend/static/js/main.16698eff.js @@ -1,3 +1,3 @@ -/*! For license information please see main.964bc334.js.LICENSE.txt */ -!function(){var e={694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t