Skip to content

Commit edb6fbf

Browse files
lguardadogragland
authored andcommitted
bugfixing: Set isSearching back to false when no results
1 parent 6ed5c1e commit edb6fbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/useDebounce.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ function App() {
3838
});
3939
} else {
4040
setResults([]);
41+
setIsSearching(false);
4142
}
4243
},
4344
[debouncedSearchTerm] // Only call effect if debounced search term changes

0 commit comments

Comments
 (0)