@audiotool/nexus - v0.0.12
    Preparing search index...

    Type Alias RetryOptions

    RetryOptions: CallOptions & {
        callIsOk?: ValueNotifier<boolean>;
        keepalive?: boolean;
        logIfRetrying?: boolean;
        onRetry?: (error: Error) => void;
    }

    Type declaration

    • OptionalcallIsOk?: ValueNotifier<boolean>

      pass a value notifier that will turn to false if something goes wrong, and back to true if things are good.

    • Optionalkeepalive?: boolean

      pass keepalive to fetch to finish the request even if the page unloads.

    • OptionallogIfRetrying?: boolean

      log if a retry happens.

    • OptionalonRetry?: (error: Error) => void

      called whenever a retry happens. The passed in error will always match the error predicate passed to the client.