dAppBooster
    Preparing search index...

    Function withSuspenseAndRetry

    • A wrapper for a component that uses suspense, with the capacity to retry if a useSuspenseQuery fails

      Type Parameters

      • WrappedProps extends object

      Parameters

      • WrappedComponent: ComponentType<WrappedProps>

        a component wrapped inside a tanstack's QueryErrorResetBoundary, ErrorBoundary, and a Suspense

      Returns ComponentType<WrappedProps & WithSuspenseAndRetryProps>