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
 | // input view
 | ||||||
| 
 | 
 | ||||||
| effect(() => { | effect(() => { | ||||||
|  | 	query.value // dependency should always be tracked
 | ||||||
| 	if (st.peek() === "accepted") return // lock results from changing during navigation
 | 	if (st.peek() === "accepted") return // lock results from changing during navigation
 | ||||||
| 	st.value = "loading" | 	st.value = "loading" | ||||||
| 	fetchSuggestions(query.value).then(res => { | 	fetchSuggestions(query.value).then(res => { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue