Skip to content

fix(blog): 코드 모듈 로딩 실패 시 본문 보존 - #228

Merged
devy1540 merged 3 commits into
mainfrom
feat/markdown-charts
Sep 22, 2026
Merged

devy1540 merged 3 commits into
mainfrom
feat/markdown-charts

Conversation

@devy1540

Copy link
Copy Markdown
Owner

코드·다이어그램 모듈 다운로드가 실패하면 React.lazy의 오류가 라우터까지 전파돼 글 전체가 오류 화면으로 바뀌었습니다. 기존 재시도 로더를 사용해 원본 코드와 본문을 유지하고 해당 블록에서 재시도하도록 바꿉니다. 기존 benchmark 모듈에도 같은 처리를 적용했습니다.

검증: 빌드, lint(오류 0개), 차트 6개·로딩/SSR 8개·SEO 5개 테스트 통과. Chrome에서 CodeBlock과 BenchmarkChart 다운로드를 각각 차단했을 때 본문 보존을 확인했고, 차단 해제 후 재시도로 Mermaid 2개·benchmark 컨트롤 3개가 복구됐습니다.

@github-actions github-actions Bot added documentation Improvements or additions to documentation target: main PR targets the main branch area: blog Blog listing, post rendering, search, tags, or series area: ui Shared UI, layout, or styling area: i18n Localization and translations labels Sep 22, 2026
@devy1540
devy1540 merged commit 92198b4 into main Sep 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: blog Blog listing, post rendering, search, tags, or series area: i18n Localization and translations area: ui Shared UI, layout, or styling documentation Improvements or additions to documentation target: main PR targets the main branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant