feat: update based on recording state
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user