MCPcopy Create free account
hub / github.com/arktypeio/arktype / preloadSearch

Function preloadSearch

ark/docs/components/shell/SearchDialog.tsx:10–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9/** starts loading the panel and index early, e.g. when a pointer nears a search button */
10export const preloadSearch = (): void =>
11 void loadPanel().then(module => module.load().catch(() => {}))
12
13const SearchPanel = lazy(() =>
14 loadPanel().then(module => ({ default: module.SearchPanel }))

Callers

nothing calls this directly

Calls 2

loadPanelFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected