Skip to content

Commit

Permalink
chore: change debounce time
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldanielecki authored Jun 22, 2024
1 parent 6595fc0 commit bcb4f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import useDebounce from "@azure-fundamentals/hooks/useDebounce";

const Home: NextPage = () => {
const [searchTerm, setSearchTerm] = useState("");
const debouncedSearchTerm = useDebounce(searchTerm, 300); // 300ms debounce delay
const debouncedSearchTerm = useDebounce(searchTerm, 1000);

const handleSearchChange = (event: React.ChangeEvent<HTMLInputElement>) => {
setSearchTerm(event.target.value);
Expand Down

0 comments on commit bcb4f48

Please sign in to comment.