paint-brush
How To Use Debounce in Next.jsby@imamdev
10,718 reads
10,718 reads

How To Use Debounce in Next.js

by Imamuzzaki Abu Salam3mNovember 20th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

React v16.8 introduced a new hook called `useEffect, which allows you to run side effects in your functional components. UseEffect is a great way to handle expensive operations like API calls, but it can take some work. In this post, I'll show you how to use use useEffect` to debounce expensive procedures in Next.js. Debouncing is a technique for controlling the rate at which a function is called. It's useful when you have an expensive operation that you want to run only when the user has stopped typing, for example.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - How To Use Debounce in Next.js
Imamuzzaki Abu Salam HackerNoon profile picture
Imamuzzaki Abu Salam

Imamuzzaki Abu Salam

@imamdev

Passionate Write who Love 🥰 Tech

L O A D I N G
. . . comments & more!

About Author

Imamuzzaki Abu Salam HackerNoon profile picture
Imamuzzaki Abu Salam@imamdev
Passionate Write who Love 🥰 Tech

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite