fix: 글 수정 시 본문 미표시 근본 수정#666
Merged
Merged
Conversation
$effect 기반 초기화의 타이밍 문제로 TiptapEditor에 content가 전달되지 않던 버그를 $state 초기값에서 post prop을 직접 사용하여 근본적으로 해결. ssr=false이므로 load() 완료 후 컴포넌트가 렌더되어 post prop은 초기화 시점에 이미 사용 가능.
Contributor
Staging 배포 완료URL: https://dev.damoang.net
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
$effect기반 비동기 초기화를$state초기값 동기 초기화로 변경onMount시점에 content가 이미 prop으로 전달되어setContent()타이밍 문제 제거Changes
post-form.svelte:$effect+postInitialized플래그 제거,$state(post?.field || '')동기 초기화Test plan
/free/{postId}/edit접속 → 본문 에디터에 기존 내용 표시 확인/free/write접속 → 빈 에디터 정상 확인