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

Function resetSearchState

web/pgadmin/static/js/QuickSearch/index.jsx:125–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123 const [showResults, setShowResults] = useState(false);
124
125 const resetSearchState = () => {
126 setMenuSearchResult(state => ({
127 ...state,
128 fetched: false,
129 data: [],
130 }));
131
132 setHelpSearchResult(state => ({
133 ...state,
134 fetched: false,
135 clearedPooling: true,
136 url: '',
137 data: {},
138 }));
139 };
140
141 // Below will be called when any changes has been made to state
142 useEffect(() => {

Callers 2

toggleDropdownMenuFunction · 0.85
onInputValueChangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected