MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / flushUpdateUrlQuery

Function flushUpdateUrlQuery

app/composables/useGlobalSearch.ts:82–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 const updateUrlQuery = debounce(updateUrlQueryImpl, SEARCH_DEBOUNCE_MS)
81
82 function flushUpdateUrlQuery() {
83 // Commit the current query when explicitly submitted (Enter pressed)
84 commitSearchQuery.cancel()
85 committedSearchQuery.value = searchQuery.value
86 // When instant search is off the debounce queue is empty, so call directly
87 if (!settings.value.instantSearch) {
88 updateUrlQueryImpl(searchQuery.value, searchProvider.value)
89 } else {
90 updateUrlQuery.flush()
91 }
92 }
93
94 const searchQueryValue = computed({
95 get: () => searchQuery.value,

Callers

nothing calls this directly

Calls 1

updateUrlQueryImplFunction · 0.85

Tested by

no test coverage detected