feat: update based on recording state

This commit is contained in:
Rohit
2025-02-01 11:11:05 +05:30
parent 0b1966a9e0
commit 03ec2a5394

View File

@@ -161,6 +161,8 @@ export const RecordingsTable = ({
const { const {
notify, notify,
robot,
recordings,
setRecordings, setRecordings,
browserId, browserId,
setBrowserId, setBrowserId,
@@ -260,10 +262,10 @@ export const RecordingsTable = ({
} }
useEffect(() => { useEffect(() => {
if (rows.length === 0) { if (recordings.length >= 0) {
fetchRecordings(); fetchRecordings();
} }
}, [fetchRecordings]); }, [recordings, fetchRecordings]);
function useDebounce<T>(value: T, delay: number): T { function useDebounce<T>(value: T, delay: number): T {
const [debouncedValue, setDebouncedValue] = React.useState<T>(value); const [debouncedValue, setDebouncedValue] = React.useState<T>(value);