Skip to content

Sync with react.dev @ 3ee3a60a #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/remove-assignees.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Remove Assignees for stale issue'
on:
issues:
types: [labeled]

permissions:
issues: write

jobs:
remove-assignees:
if: github.event.label.name == 'stale'
runs-on: ubuntu-latest
steps:
- name: 이슈 할당 해제
run: |
curl -X PATCH \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}" \
-d '{"assignees":[]}'
29 changes: 29 additions & 0 deletions .github/workflows/stale-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: 'Stale Issue'
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:

permissions:
issues: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 30
days-before-close: -1

stale-issue-message: '30일 동안 작업이 없어 할당을 해제합니다.'
stale-issue-label: 'stale'
exempt-issue-labels: 'DO NOT CLOSE OR MERGE,discussion,term,TIP'

days-before-pr-stale: -1

labels-to-remove-when-unstale: 'stale'

include-only-assigned: true

4 changes: 4 additions & 0 deletions src/content/learn/preserving-and-resetting-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,11 @@

</Sandpack>

<<<<<<< HEAD

Check failure on line 674 in src/content/learn/preserving-and-resetting-state.md

View workflow job for this annotation

GitHub Actions / Lint

Git conflict marker `<<<<<<<` is not allowed
체크 박스를 선택할 때 카운터 state가 초기화됩니다. `div`의 첫 번째 자식으로 `Counter`를 렌더링하는 것에서 `section`의 첫 번째 자식으로 바꾸지만요. 자식 `div`가 DOM에서 제거될 때 그것의 전체 하위 트리(`Counter`와 그 state를 포함해서)는 제거됩니다.
=======

Check failure on line 676 in src/content/learn/preserving-and-resetting-state.md

View workflow job for this annotation

GitHub Actions / Lint

Git conflict marker `=======` is not allowed
The counter state gets reset when you click the checkbox. Although you render a `Counter`, the first child of the `div` changes from a `section` to a `div`. When the child `section` was removed from the DOM, the whole tree below it (including the `Counter` and its state) was destroyed as well.
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c

Check failure on line 678 in src/content/learn/preserving-and-resetting-state.md

View workflow job for this annotation

GitHub Actions / Lint

Git conflict marker `>>>>>>>` is not allowed

<DiagramGroup>

Expand Down
Loading