Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] React.Suspense 사용 시 전체 페이지 렌더링이 블록되는 문제 #100

Closed
leegwae opened this issue Nov 22, 2022 · 0 comments
Assignees
Labels
🐛 bug 버그 제보 ❓ help 질문 혹은 도움이 필요한 경우

Comments

@leegwae
Copy link
Member

leegwae commented Nov 22, 2022

🔄 How to reproduce bug

/dms 페이지 접속시 /GET /user/followings mock API 딜레이 시간만큼 해당 페이지 렌더링이 블록된다.

⚙ Environments

  • "@tanstack/react-query": "^4.16.1",
  • "react": "^18.2.0",
@leegwae leegwae added 🐛 bug 버그 제보 ❓ help 질문 혹은 도움이 필요한 경우 labels Nov 22, 2022
@leegwae leegwae self-assigned this Nov 22, 2022
leegwae added a commit that referenced this issue Nov 23, 2022
다음과 같은 문제가 있음
- `Suspense` 부모 컴포넌트도 렌더링 블록되는 문제
- 같은 레벨의 `Followers`에서 `useQuery`에 `suspense: true` 옵션 주면 다음과 같은 에러 발생

```
Uncaught Error: A component suspended while responding to synchronous input
```
mjsdo pushed a commit that referenced this issue Nov 23, 2022
다음과 같은 문제가 있음
- `Suspense` 부모 컴포넌트도 렌더링 블록되는 문제
- 같은 레벨의 `Followers`에서 `useQuery`에 `suspense: true` 옵션 주면 다음과 같은 에러 발생

```
Uncaught Error: A component suspended while responding to synchronous input
```
mjsdo pushed a commit that referenced this issue Nov 25, 2022
다음과 같은 문제가 있음
- `Suspense` 부모 컴포넌트도 렌더링 블록되는 문제
- 같은 레벨의 `Followers`에서 `useQuery`에 `suspense: true` 옵션 주면 다음과 같은 에러 발생

```
Uncaught Error: A component suspended while responding to synchronous input
```
soomanbaek pushed a commit that referenced this issue Nov 25, 2022
다음과 같은 문제가 있음
- `Suspense` 부모 컴포넌트도 렌더링 블록되는 문제
- 같은 레벨의 `Followers`에서 `useQuery`에 `suspense: true` 옵션 주면 다음과 같은 에러 발생

```
Uncaught Error: A component suspended while responding to synchronous input
```
@mjsdo mjsdo closed this as completed Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug 버그 제보 ❓ help 질문 혹은 도움이 필요한 경우
Projects
None yet
Development

No branches or pull requests

2 participants