Debouncing a Query

Learn about debouncing a GraphQL query in a React application.

Why debounce?

The default behavior for using lazy queries is that the results flicker while typing the input. This is because every character we type or remove triggers a new GraphQL request. Let’s take a quick look at how to mitigate that.

Sending a query whenever the input changes seems a bit excessive. A better approach here is ...