
React
React Query, Suspense, Error Boundary를 사용해 선언적으로 비동기 처리하기
문제 상황 투두 앱 만들기 중에 오류가 발생했다. 특정 투두를 선택해 /todos/:id 페이지로 이동했더니 빈화면이 뜨고 다음의 에러가 발생했다. react-dom.development.js:19055 Uncaught Error: A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition. 동기적인 입력에 응답하는 동안 컴포넌트가 중단되었다. 이는 UI가 로딩중을 나타내는 것으로 대체되게 한다. 해결하기위해 중단된 컴포넌..