Unlock search suggestions properly (real)

This commit is contained in:
Cadence Ember 2023-02-10 23:53:38 +13:00
parent 0b858cf426
commit 5fa6e2fb9e
Signed by: cadence
GPG Key ID: BC1C2C61CF521B17
1 changed files with 1 additions and 0 deletions

View File

@ -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 => {