2020-05-19

박동건·2020년 5월 19일
0

TIL(2020)

목록 보기
29/49

Today I Learn...

next

  • 넥스트에서 쿼리를 안나오게 as를 사용하여 숨길수 있다!
    <Link href={{ pathname: "/hashtag", query: { tag: v.slice(1) }, }}
         as={`/hashtag/${v.slice(1)}`} key={v} > <a>{v}</a> </Link>

에러핸들링

  • 리덕스 액션도 성공했고, DB에는 업데이트가 잘 들어오고 있었지만 회원가입 성공시 이벤트 처리를 하지 않았다. 프론트와 백 사이에 확인하는 과정을 로딩되는 모양으로 꾸며놨는데 이 부분에 리듀서 처리를 성공했을 때를 안바꿔놨었다... 그래서 성공해도 계속 뺑글뺑글 돌았다..
  • 시퀄라이즈로 hashtag라는 테이블을 만들었는데 여기서 쓰인 칼럼 값을 제대로 안적어서 오류가 났었다.
  • 아직 해결해야 할 것이 남아있다.
// 해결해야할 에러1

Warning: Encountered two children with the same key, `NaN`. Keys should
be unique so that components maintain their identity across updates.
Non-unique keys may cause children to be duplicated and/or omitted
— the behavior is unsupported and could change in a future version.
// 해결해야할 에러2

Warning: Failed prop type: Invalid prop `post.createdAt` of type 
`string` supplied to `PostCard`, expected `object`.
// 해결해야할 에러3

상대방 유저의 게시글 수 랜더링
profile
박레고의 개발 블로그

0개의 댓글