Slackbot
12/22/2021, 9:23 AMAlucard
12/22/2021, 9:26 AMHyeseong Kim
12/22/2021, 9:49 AMTony Won
Hyeseong Kim
12/22/2021, 9:56 AMHyeseong Kim
12/22/2021, 9:56 AMHyeseong Kim
12/22/2021, 10:00 AMexport function required<T>(v: T): asserts v {
  if (v == null) {
    throw new Error(`Expected non nullable, but got ${v}`);
  }
}
export default function MyComponent() {
  const data = useQuery(...);
  required(data.item.field);
  return (
    ...
  );
}
<ErrorBoundary
  renderFallback={({ resetError }) => {
    return <>...</>
  }}
>
  <MyComponent />
</ErrorBoundary>Hyeseong Kim
12/22/2021, 10:00 AMHyeseong Kim
12/22/2021, 10:01 AMHyeseong Kim
12/22/2021, 10:02 AMbumkeyy
12/22/2021, 11:11 AMHyeseong Kim
12/22/2021, 11:14 AMHyeseong Kim
12/22/2021, 11:16 AMbumkeyy
12/22/2021, 12:45 PMHyeseong Kim
12/23/2021, 1:47 AMbumkeyy
02/06/2022, 1:58 AMHyeseong Kim
02/07/2022, 1:11 AM