beforeUpdate(async () => { console.log('the component is about to update'); await tick(); console.log('the component just updated'); });
 2 Matching Annotations
        
        - Jan 2021
- 
            
svelte.dev svelte.dev
- 
  
- Oct 2020
- 
            
svelte.dev svelte.dev- 
  You can see that behaviour in this example. Select a range of text and hit the tab key. Because the <textarea> value changes, the current selection is cleared and the cursor jumps, annoyingly, to the end. 
 
-