diff --git a/app/src/gui/components/notebook/record_table.tsx b/app/src/gui/components/notebook/record_table.tsx index 2f0529c47..05ca017a6 100644 --- a/app/src/gui/components/notebook/record_table.tsx +++ b/app/src/gui/components/notebook/record_table.tsx @@ -548,6 +548,8 @@ export function RecordsBrowseTable(props: RecordsBrowseTableProps) { const [query, setQuery] = React.useState(''); const {data: records, isLoading: recordsLoading} = useQuery({ queryKey: ['allrecords', query, props.project_id], + networkMode: 'always', + gcTime: 0, queryFn: async () => { if (query.length === 0) { return await getMetadataForAllRecords( @@ -562,10 +564,6 @@ export function RecordsBrowseTable(props: RecordsBrowseTableProps) { ); } }, - // TODO if we are seeing performance issues, really we should get told when - // to invalidate this cache. To be extra careful to keep records up to date - // we force a refresh on remount - refetchOnMount: true, }); return (