Skip to content

Conversation

devwqc
Copy link
Contributor

@devwqc devwqc commented Dec 2, 2024

안녕하세요!
cache.md 를 읽어보다 Markdown이 제대로 표시되지 않는 부분이 있어서 수정했습니다.

Progress

Copy link

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ko-react-dev 🔄 Building (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 11:04pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
ko-legacy-reactjs-org ⬜️ Ignored (Inspect) Visit Preview Dec 2, 2024 11:04pm

Copy link

github-actions bot commented Dec 2, 2024

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

첫 번째 <CodeStep step={2}>`getData`</CodeStep> 호출은 `기다리지 않지만(await)` <CodeStep step={3}>두 번째</CodeStep>는 기다립니다. [`await`](https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/await) 는 자바스크립트 연산자로, 기다렸다가 확정된 Promise의 결과를 반환합니다. 첫 번째 <CodeStep step={2}>`getData`</CodeStep>은 단순히 조회할 두 번째 <CodeStep step={3}>`getData`</CodeStep>에 대한 Promise를 캐싱하기 위해 `fetch`를 실행합니다.

<CodeStep step={3}>두 번째 호출</CodeStep>에서 Promise가 여전히 _보류 중_이면, 결과를 기다리는 동안 `await`가 일시 중지됩니다. 이 최적화는 데이터 불러오기를 기다리는 동안 React가 계산 작업을 계속할 수 있게 해 <CodeStep step={3}>두 번째 호출</CodeStep>에 대한 대기 시간을 줄일 수 있게 합니다.
<CodeStep step={3}>두 번째 호출</CodeStep>에서 Promise가 여전히 _보류 _ 이면, 결과를 기다리는 동안 `await`가 일시 중지됩니다. 이 최적화는 데이터 불러오기를 기다리는 동안 React가 계산 작업을 계속할 수 있게 해 <CodeStep step={3}>두 번째 호출</CodeStep>에 대한 대기 시간을 줄일 수 있게 합니다.
Copy link
Collaborator

@lumirlumir lumirlumir Dec 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<CodeStep step={3}>두 번째 호출</CodeStep>에서 Promise가 여전히 _보류 중_ 이면, 결과를 기다리는 동안 `await`가 일시 중지됩니다. 이 최적화는 데이터 불러오기를 기다리는 동안 React가 계산 작업을 계속할 수 있게 해 <CodeStep step={3}>두 번째 호출</CodeStep>에 대한 대기 시간을 줄일 수 있게 합니다.
<CodeStep step={3}>두 번째 호출</CodeStep>에서 Promise가 여전히 <em>보류 중</em>이면, 결과를 기다리는 동안 `await`가 일시 중지됩니다. 이 최적화는 데이터 불러오기를 기다리는 동안 React가 계산 작업을 계속할 수 있게 해 <CodeStep step={3}>두 번째 호출</CodeStep>에 대한 대기 시간을 줄일 수 있게 합니다.

_를 사용할 경우 글자 사이에 띄어쓰기를 필수적으로 사용해야 하기에, 대신 <em> 태그를 사용하여 띄어쓰기 없이 진행하는게 좋을 듯 합니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lumirlumir

좋은 리뷰 감사합니다!

254 라인 에서 보류 중을 기울임으로 표현하고 있는데 통일성을 위해서 <strong> 대신 <em> 을 사용하는 것은 어떻게 생각하시나요?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devwqc 아 제가 순간 헷갈렸네요..ㅠㅠ <em>으로 해주시면 될 것 같습니다👍

Copy link
Collaborator

@lumirlumir lumirlumir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

안녕하세요, PR 보내주셔서 감사합니다.

리뷰에 요청사항이 있습니다! 반영해서 수정해주시면 감사하겠습니다

@devwqc devwqc requested a review from lumirlumir December 2, 2024 15:44
@devwqc
Copy link
Contributor Author

devwqc commented Dec 2, 2024

안녕하세요, PR 보내주셔서 감사합니다.

리뷰에 요청사항이 있습니다! 반영해서 수정해주시면 감사하겠습니다

@lumirlumir

984c881

감사합니다!
말씀해 주신 부분 반영했습니다.

Copy link
Collaborator

@lumirlumir lumirlumir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, 감사합니다!

@lumirlumir lumirlumir merged commit e7e1157 into reactjs:main Dec 3, 2024
6 checks passed
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.

2 participants