Skip to content

Conversation

manudeli
Copy link
Contributor

@manudeli manudeli commented Sep 5, 2023

QueryErrorBoundary의 Props타입이 fallback을 포함하고 있지 않아서 ErrorBoundary의 타입을 확장해 사용하도록 변경했어요

Copy link
Owner

@ssi02014 ssi02014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코멘트 확인해주시면 감사드립니다 🙇‍♂️

fallbackRender={fallbackRender}
>
{children}
</ErrorBoundary>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저는 개인적으로 너무나도 좋지만 해당 문서는 처음 tanstack query를 사용하는 사람의 기준으로 작성되야 할 것 같은데요!
기존 형태가 fallbackRender을 그래도 어떤 형태로 작성 되는지 조금 더 가이드라인이 될 것 같습니다
현재도 공식 문서를 예제를 기반으로 작성하였습니다!

https://tanstack.com/query/latest/docs/react/reference/useQueryErrorResetBoundary

Copy link
Contributor Author

@manudeli manudeli Sep 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QueryErrorBoundary의 Props타입에는 fallback이 없지만 코드에는 fallback필드가 있어서 민재님의 의도가 QueryErrorBoundary 외부에서 ErrorBoundary.fallbackRender의 resetErrorBoundary를 사용하려는 의도로 생각했어요. 그렇다면 아예 QueryErrorBoundary의 fallback을 제거해서 의도를 더 명확히 하는 것은 어떨까요? 괜찮다면 maintainer가 수정할 수 있게 되어있는데 민재님이 그렇게 수정해주실 수 있나요?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 의도치않게 fallback이 껴있었군요 해당 부분은 제가 제거하도록 하겠습니다 감사합니다!!

@manudeli manudeli requested a review from ssi02014 September 5, 2023 13:28
Copy link
Owner

@ssi02014 ssi02014 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#17 해당 PR에서 fallback을 제거해서 해당 PR은 close하도록 하겠습니다! 추가로, suspensive/react-query 타이틀을 추가했습니다.

@ssi02014 ssi02014 closed this Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants