From e9a0fb3bcbebbbf04af88b20ddbfe5ece5aff174 Mon Sep 17 00:00:00 2001 From: rmorshea Date: Tue, 24 Jan 2023 12:06:31 -0800 Subject: [PATCH] no need to unmount on reconnect --- src/client/packages/idom-client-react/src/mount.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/client/packages/idom-client-react/src/mount.js b/src/client/packages/idom-client-react/src/mount.js index 5b12985bb..ac09d21d8 100644 --- a/src/client/packages/idom-client-react/src/mount.js +++ b/src/client/packages/idom-client-react/src/mount.js @@ -38,9 +38,6 @@ function mountLayoutWithReconnectingWebSocket( socket.onopen = (event) => { console.info(`IDOM WebSocket connected.`); - if (mountState.everMounted) { - ReactDOM.unmountComponentAtNode(element); - } _resetOpenMountState(mountState); mountLayout(element, {