MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / onInputValueChange

Function onInputValueChange

web/pgadmin/static/js/QuickSearch/index.jsx:209–229  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

207
208
209 const onInputValueChange = (value) => {
210 let pooling = window.pooling;
211 if(pooling){
212 window.clearInterval(pooling);
213 }
214 resetSearchState();
215 setSearchTerm(value);
216 if(value.length >= 3){
217 setIsMenuLoading(true);
218 setIsHelpLoading(true);
219 setIsShowMinLengthMsg(false);
220 }
221
222 if(value.length < 3 && value.length > 0){
223 setIsShowMinLengthMsg(true);
224 }
225
226 if(value.length == 0){
227 setIsShowMinLengthMsg(false);
228 }
229 };
230
231 const useOutsideAlerter = (ref) => {
232 useEffect(() => {

Callers

nothing calls this directly

Calls 1

resetSearchStateFunction · 0.85

Tested by

no test coverage detected