Skip to main content

useWalletDisconnector

Callable

  • useWalletDisconnector(wallets?: any): { data: Ref<void, void>; error: Ref<unknown, unknown>; execute: (...args: [wallets?: any]) => Subscription | Promise<void>; status: Ref<error | success | idle | pending, error | success | idle | pending> }

  • Composable for disconnecting wallets


    Parameters

    • optionalwallets: any

      Wallets to disconnect from, will disconnect from all connected wallets if none is specified

    Returns { data: Ref<void, void>; error: Ref<unknown, unknown>; execute: (...args: [wallets?: any]) => Subscription | Promise<void>; status: Ref<error | success | idle | pending, error | success | idle | pending> }

    The wallet disconnection state & disconnect function

    • data: Ref<void, void>
    • error: Ref<unknown, unknown>
    • execute: (...args: [wallets?: any]) => Subscription | Promise<void>
        • (...args: [wallets?: any]): Subscription | Promise<void>
        • Parameters

          • rest...args: [wallets?: any]

          Returns Subscription | Promise<void>

    • status: Ref<error | success | idle | pending, error | success | idle | pending>