mirror of
https://gitdab.com/cadence/breezewiki.git
synced 2026-03-05 13:40:27 -05:00
Unlock search suggestions properly (real)
This commit is contained in:
@@ -64,6 +64,7 @@ render(html`<${SuggestionList} />`, eSuggestions)
|
||||
// input view
|
||||
|
||||
effect(() => {
|
||||
query.value // dependency should always be tracked
|
||||
if (st.peek() === "accepted") return // lock results from changing during navigation
|
||||
st.value = "loading"
|
||||
fetchSuggestions(query.value).then(res => {
|
||||
|
||||
Reference in New Issue
Block a user