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

Function initSearch

web/pgadmin/static/js/QuickSearch/index.jsx:152–167  ·  view source on GitHub ↗
(param)

Source from the content-addressed store, hash-verified

150 }, [menuSearchResult, helpSearchResult]);
151
152 const initSearch = (param) => {
153 if(param.length < 3) {
154 return;
155 }
156 setIsMenuLoading(true);
157 setIsHelpLoading(true);
158
159 onlineHelpSearch(param, {
160 state: helpSearchResult,
161 setState: setHelpSearchResult,
162 });
163 menuSearch(param, {
164 state: menuSearchResult,
165 setState: setMenuSearchResult,
166 });
167 };
168
169 // Debounse logic to avoid multiple re-render with each keypress
170 useDelayDebounce(initSearch, searchTerm, 1000);

Callers

nothing calls this directly

Calls 2

onlineHelpSearchFunction · 0.90
menuSearchFunction · 0.90

Tested by

no test coverage detected