Type alias SuspenseResultWithError<T, E>Experimental

SuspenseResultWithError<T, E>: {
    data: undefined;
    error: E;
} | {
    data: T;
    error: undefined;
}

A read result that supports React Suspense and includes an error.

This is an experimental type that can change at any time.

Type Parameters

  • T

  • E

Type declaration

  • data: undefined
  • error: E

Type declaration

  • data: T
  • error: undefined