Skip to content

Commit 9dbd049

Browse files
jaem0629lumirlumir
andauthored
Update src/content/learn/synchronizing-with-effects.md
Co-authored-by: 루밀LuMir <rpfos@naver.com>
1 parent 40457e3 commit 9dbd049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/synchronizing-with-effects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ function VideoPlayer({ src, isPlaying }) {
441441
}, [isPlaying]);
442442
```
443443
444-
이것은 `ref` 객체가 안정된 식별성(stable identity)을 가지기 때문입니다. React는 동일한 `useRef` 호출에서 항상 [같은 객체를 얻을 수 있음을](/reference/react/useRef#returns) 보장합니다. 이 객체는 절대 변경되지 않기 때문에 자체적으로 Effect를 다시 실행시키지 않습니다. 따라서 `ref`는 의존성 배열에 포함하든 포함하지 않든 상관없습니다. 포함해도 문제없습니다.
444+
이것은 `ref` 객체가 <em>안정된 식별성(stable identity)</em>을 가지기 때문입니다. React는 동일한 `useRef` 호출에서 항상 [같은 객체를 얻을 수 있음을](/reference/react/useRef#returns) 보장합니다. 이 객체는 절대 변경되지 않기 때문에 자체적으로 Effect를 다시 실행시키지 않습니다. 따라서 `ref`는 의존성 배열에 포함하든 포함하지 않든 상관없습니다. 포함해도 문제없습니다.
445445
446446
```js {9}
447447
function VideoPlayer({ src, isPlaying }) {

0 commit comments

Comments
 (0)