nailedReact / bokgungom-market

멋쟁이사자처럼 프론트엔드 스쿨 3기 15조 득근득근 복근곰마켓 레포지토리
https://bokgungom-market.vercel.app/
6 stars 5 forks source link

[FEED] 프로필 상세 페이지 - 댓글 처음 달 때 에러 생김 #202

Closed SEMINSEMINSEMIN closed 1 year ago

SEMINSEMINSEMIN commented 1 year ago
PostDetail.jsx:149 Uncaught TypeError: prev is not iterable
    at PostDetail.jsx:149:1
    at basicStateReducer (react-dom.development.js:16540:1)
    at updateReducer (react-dom.development.js:16664:1)
    at updateState (react-dom.development.js:17004:1)
    at Object.useState (react-dom.development.js:17915:1)
    at useState (react.development.js:1622:1)
    at PostDetail (PostDetail.jsx:26:1)
    at renderWithHooks (react-dom.development.js:16305:1)
    at updateFunctionComponent (react-dom.development.js:19588:1)
    at beginWork (react-dom.development.js:21601:1)
The above error occurred in the <PostDetail> component:

    at PostDetail (http://localhost:60971/static/js/bundle.js:7315:80)
    at RenderedRoute (http://localhost:60971/static/js/bundle.js:50257:5)
    at Outlet (http://localhost:60971/static/js/bundle.js:50595:26)
    at RenderedRoute (http://localhost:60971/static/js/bundle.js:50257:5)
    at Routes (http://localhost:60971/static/js/bundle.js:50680:5)
    at Router (http://localhost:60971/static/js/bundle.js:50618:15)
    at BrowserRouter (http://localhost:60971/static/js/bundle.js:48965:5)
    at Router
    at App

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
github-actions[bot] commented 1 year ago

Branch bug/issue-202 created for issue: [FEED] 프로필 상세 페이지 - 댓글 처음 달 때 에러 생김