diff --git a/content/tutorial/01-svelte/07-lifecycle/03-tick/README.md b/content/tutorial/01-svelte/07-lifecycle/03-tick/README.md index 78226bf1..06dbddf7 100644 --- a/content/tutorial/01-svelte/07-lifecycle/03-tick/README.md +++ b/content/tutorial/01-svelte/07-lifecycle/03-tick/README.md @@ -2,11 +2,11 @@ title: tick --- -The `tick` function is unlike other lifecycle functions in that you can call it any time, not just when the component first initialises. It returns a promise that resolves as soon as any pending state changes have been applied to the DOM (or immediately, if there are no pending state changes). +`tick` 함수는 다른 생명주기 함수와 달리, 컴포넌트가 처음 초기화될 때뿐만 아니라 언제든지 호출할 수 있습니다. 이는 대기 중인 상태 변경이 DOM에 적용되자마자 해결되는 프로미스를 반환합니다. (대기 중인 상태 변경이 없는 경우 즉시 해결됩니다.) -When you update component state in Svelte, it doesn't update the DOM immediately. Instead, it waits until the next _microtask_ to see if there are any other changes that need to be applied, including in other components. Doing so avoids unnecessary work and allows the browser to batch things more effectively. +스벨트에서 컴포넌트 상태를 업데이트할 때, DOM은 즉시 업데이트되지 않습니다. 대신 다음 _마이크로태스크_ 까지 기다리며 다른 컴포넌트에서를 포함해 적용해야 할 다른 변경 사항이 있는지 확인합니다. 이렇게 하면 불필요한 작업을 피하고 브라우저가 작업을 더 효과적으로 배치할 수 있습니다. -You can see that behaviour in this example. Select a range of text and hit the tab key. Because the `