You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Effect 이벤트 선언하기 {/*declaring-an-effect-event*/}
402
402
403
-
Use a special Hook called [`useEffectEvent`](/reference/react/useEffectEvent) to extract this non-reactive logic out of your Effect:
403
+
[`useEffectEvent`](/reference/react/useEffectEvent)라는 특별한 Hook을 사용하여 Effect에서 비반응형 로직을 추출하세요.
404
404
405
405
```js {1,4-6}
406
406
import { useEffect, useEffectEvent } from'react';
@@ -572,7 +572,7 @@ Effect 이벤트가 이벤트 핸들러와 아주 비슷하다고 생각할 수
572
572
573
573
### Effect 이벤트로 최근 props와 state 읽기 {/*reading-latest-props-and-state-with-effect-events*/}
574
574
575
-
Effect Events let you fix many patterns where you might be tempted to suppress the dependency linter.
575
+
Effect 이벤트는 의존성 린터를 억제하고 싶은 충동이 드는 많은 패턴을 해결할 수 있게 해줍니다.
576
576
577
577
예를 들어 페이지 방문을 기록하기 위한 Effect가 있다고 해보겠습니다.
578
578
@@ -713,7 +713,7 @@ function Page({ url }) {
713
713
}
714
714
```
715
715
716
-
We recommend **never suppressing the linter**.
716
+
린터를 **절대로 억제하지 않는 것**을 권장합니다.
717
717
718
718
규칙을 억제하는 것의 첫 번째 단점은 코드에 추가한 새로운 반응형 의존성에 Effect가 "반응"해야 할 때 React가 더 이상 경고하지 않는다는 것입니다. 이전 예시에서는 React가 의존성에 `url`을 추가하라고 상기시켜 주었기 *때문에* 그렇게 했습니다. 린터를 억제하면 해당 Effect에 대한 향후 편집에 대해 이러한 알림을 더 이상 받지 않게 됩니다. 이는 버그로 이어집니다.
719
719
@@ -850,7 +850,7 @@ body {
850
850
851
851
### Effect 이벤트의 한계 {/*limitations-of-effect-events*/}
852
852
853
-
Effect Events are very limited in how you can use them:
0 commit comments