Refactor data fetching hooks, add page size lint test

- Simplify useFetchData: remove unused URL building logic
- Add usePolledData initial implementation
- Add router page_size param validation test
- Update API reference docs
- Clean up tasks doc
This commit is contained in:
2026-05-04 06:48:24 +02:00
parent 0a3f9c6c16
commit 69e1726045
7 changed files with 134 additions and 93 deletions

View File

@@ -195,7 +195,7 @@ export function usePolledData<TResponse, TData>(
if (!refetchOnWindowFocus) return;
const onFocus = (): void => {
refreshRef.current();
refreshRef.current?.();
};
window.addEventListener("focus", onFocus);