Scope folder realtime refreshes by device
This commit is contained in:
@@ -262,11 +262,15 @@ export function RealtimeRefresh({
|
||||
events,
|
||||
projectId,
|
||||
projectIds,
|
||||
deviceId,
|
||||
deviceIds,
|
||||
conversationUpdatedNotes,
|
||||
}: {
|
||||
events: BossEventName[];
|
||||
projectId?: string;
|
||||
projectIds?: string[];
|
||||
deviceId?: string;
|
||||
deviceIds?: string[];
|
||||
conversationUpdatedNotes?: string[];
|
||||
}) {
|
||||
const router = useRouter();
|
||||
@@ -291,6 +295,8 @@ export function RealtimeRefresh({
|
||||
eventData,
|
||||
projectId,
|
||||
projectIds,
|
||||
deviceId,
|
||||
deviceIds,
|
||||
conversationUpdatedNotes,
|
||||
})) {
|
||||
return;
|
||||
@@ -326,7 +332,7 @@ export function RealtimeRefresh({
|
||||
cancelScheduledRefresh(throttleState);
|
||||
source.close();
|
||||
};
|
||||
}, [conversationUpdatedNotes, events, projectId, projectIds, router]);
|
||||
}, [conversationUpdatedNotes, deviceId, deviceIds, events, projectId, projectIds, router]);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user