mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-11-19 03:53:03 +03:00
don't resend onconnect
This commit is contained in:
@@ -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 = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user