Skip to content

docs: translate cache reference page - #1550

Open
boram2445 wants to merge 1 commit into
reactjs:mainfrom
boram2445:translate-cache-reference
Open

docs: translate cache reference page#1550
boram2445 wants to merge 1 commit into
reactjs:mainfrom
boram2445:translate-cache-reference

Conversation

@boram2445

Copy link
Copy Markdown

cache 레퍼런스 페이지 번역

변경사항

src/content/reference/react/cache.md에 영어 원문으로 남아 있던 19줄을 번역하였습니다.

확인: https://ko.react.dev/reference/react/cache

특이사항

번역 외에 두 곳을 수정했습니다. 지난 Sync with react.dev 병합 과정에서 생긴 것으로 보입니다.

1. 중복된 문단을 제거했습니다

고비용 연산 캐싱하기 첫 문단이 한국어와 영어로 두 번 들어가 있었습니다. 원본에는 이 문단이 하나뿐입니다. 기존 번역을 남기고 중복된 영어 줄을 지웠습니다.

  같은 `user` 객체가 `Profile`과 `TeamReport`에서 렌더링될 때, 두 컴포넌트는 작업을 공유하고, `user`를 위한 `calculateUserMetrics`를 한 번만 호출합니다.
- If the same `user` object is rendered in both `Profile` and `TeamReport`, the two components can share work and only call `calculateUserMetrics` once for that `user`.

2. 누락된 문단을 추가했습니다

useMemo DeepDive에서 원본 문단 하나가 한국어 문서에 없었습니다. 이 문단이 없으면 바로 다음 문단의 However(→ 다만)가 무엇과 대비되는지 알 수 없습니다.

+ 이 예시에서 `App`은 같은 record로 `WeatherReport` 두 개를 렌더링합니다. 두 컴포넌트가 같은 작업을 하더라도 작업을 공유할 수는 없습니다. `useMemo`의 캐시는 해당 컴포넌트 안에만 존재합니다.

  다만 `App`이 다시 렌더링되어도 `record` 객체가 변하지 않았다면, `useMemo`는 각 컴포넌트 인스턴스가 작업을 생략하고 메모화된 `avgTemp` 값을 사용하도록 보장합니다.

필수 확인 사항

선택 확인 사항

  • 번역 초안 작성Draft Translation
  • 리뷰 반영Resolve Reviews

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ko-legacy-reactjs-org Ignored Ignored Preview Jul 27, 2026 4:51am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant