()
| 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, |
nothing calls this directly
no test coverage detected