pierrejeambrun commented on code in PR #50732:
URL: https://github.com/apache/airflow/pull/50732#discussion_r2106903171


##########
airflow-core/src/airflow/ui/src/pages/DagsList/DagsFilters.tsx:
##########
@@ -62,11 +65,22 @@ export const DagsFilters = () => {
   const isRunning = state === "running";
   const isFailed = state === "failed";
   const isSuccess = state === "success";
+  const limit = 50;
 
+  const [pattern, setPattern] = useState<string>("");
+  const [offset, setOffset] = useState<number>(0);
+  const [tagsList, setTagsList] = useState<Array<string>>([]);
   const { data } = useDagServiceGetDagTags({

Review Comment:
   We can check this: 
https://tanstack.com/query/latest/docs/framework/react/guides/infinite-queries
   
   It will remove completely the need for manual accumulator + useEffects I 
think.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to