File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/content/reference/react Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ title: captureOwnerStack
44
55<Intro >
66
7- ` captureOwnerStack ` 는 개발 환경에서 현재 Owner Stack을 읽고, 사용할 수 있는 문자열을 반환합니다.
7+ ` captureOwnerStack ` 는 개발 환경에서 현재 Owner Stack을 읽고, 사용할 수 있다면 문자열 반환합니다.
88
99``` js
1010const stack = captureOwnerStack ();
@@ -43,11 +43,12 @@ function Component() {
4343
4444Owner Stacks은 다음 경우에 사용할 수 있습니다.
4545- 컴포넌트 렌더링 시
46- - 이펙트 (예: ` useEffect ` )
46+ - Effect (예: ` useEffect ` )
4747- React 이벤트 핸들러 (예: ` <button onClick={...} /> ` )
4848- React 오류 핸들러 ([ React 루트 옵션] ( /reference/react-dom/client/createRoot#parameters ) ` onCaughtError ` , ` onRecoverableError ` , ` onUncaughtError ` )
4949
50- Owner Stack을 사용할 수 없는 경우, ` null ` 이 반환됩니다. ([ 문제해결: Owner Stack이 ` null ` 인 경우] ( #the-owner-stack-is-null ) )
50+ Owner Stack을 사용할 수 없는 경우, ` null ` 을 반환합니다. ([ 문제해결: Owner Stack이 ` null ` 인 경우] ( #the-owner-stack-is-null ) )
51+
5152#### 주의 사항 {/* caveats* /}
5253
5354- Owner Stack은 개발 환경에서만 사용할 수 있습니다. ` captureOwnerStack ` 은 개발 환경 밖에서는 항상 ` null ` 을 반환합니다.
You can’t perform that action at this time.
0 commit comments