don't resend onconnect

This commit is contained in:
Josh Hawkins 2026-03-09 09:22:49 -05:00
parent 7fc95c0e41
commit d2b0878704

View File

@ -521,7 +521,6 @@ export function useInitialCameraState(
// every component mount. Components read cached wsState immediately via // every component mount. Components read cached wsState immediately via
// useSyncExternalStore. Only re-request when the user tabs back in. // useSyncExternalStore. Only re-request when the user tabs back in.
useEffect(() => { useEffect(() => {
sendCommand("onConnect");
if (!revalidateOnFocus) return; if (!revalidateOnFocus) return;
const listener = () => { const listener = () => {