From 6cf223fbc3001123347de03992c7fc569efe787a Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Mon, 24 Oct 2022 22:59:15 +0900 Subject: [PATCH] fix(async-boundary): add generic constraint of withAsyncBoundary (#82) Co-authored-by: Sojin Park --- packages/react/async-boundary/src/withAsyncBoundary.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/async-boundary/src/withAsyncBoundary.tsx b/packages/react/async-boundary/src/withAsyncBoundary.tsx index 0a4c38836..8affcda89 100644 --- a/packages/react/async-boundary/src/withAsyncBoundary.tsx +++ b/packages/react/async-boundary/src/withAsyncBoundary.tsx @@ -17,7 +17,7 @@ import AsyncBoundary from './AsyncBoundary'; * @see https://jbee.io/react/error-declarative-handling-1/ 선언적으로 로딩과 에러 상태 처리하기 * @see https://toss.im/slash-21/sessions/3-1 Suspense와 에러 처리 관련된 Slash 21 발표 */ -export default function withAsyncBoundary( +export default function withAsyncBoundary = Record>( WrappedComponent: ComponentType, asyncBoundaryProps: ComponentProps ) {