HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🤎
프론트엔드 데브코스 5기 교육생
/
소인성팀
소인성팀
/
팀프로젝트-모모
팀프로젝트-모모
/
🛠️
리팩토링
/
postComment

postComment

설명
댓글작성
경로
src/_redux/slices/postSlices/getPostSlice.ts 79번 라인
개선 사항
상태
export const postComment = createAsyncThunk( 'postComment', async ({ comment, postId, postAuthorId }: IpostCommentParams) => { const response = await postApiJWT<IComment>('/comments/create', { comment, postId, }); void createNotification({ notificationType: 'COMMENT', notificationTypeId: response.data._id, userId: postAuthorId, postId, }); return response.data; }, );