forked from cadence/breezewiki
Unlock search suggestions properly (real)
This commit is contained in:
parent
0b858cf426
commit
5fa6e2fb9e
1 changed files with 1 additions and 0 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue