I have a react-query hook that goes like this:
const { data: users, refetch } = useGetUsers({
page,
size: 50,
searchParam,
// enabled: false,
});
The problem is, everytime searchParam changes it fetches again. So technically, many users fetching can cause a mini DDoS in this route. Is there a way to delay this fetching until the user stops inputing from keyboard?