Skip to content

Documentation / expo / isConnecting

Function: isConnecting()

isConnecting(s)

isConnecting(s): s is EmbeddedWalletConnectingState

A type predicate to narrow the Embedded Wallet state to the Connecting state.

Parameters

s: EmbeddedWalletState

Returns

s is EmbeddedWalletConnectingState

Example

ts
import {useEmbeddedWallet, useEmbeddedSolanaWalet, isConnected} from '@privy-io/expo';

const wallet = useEmbeddedWallet();
/// OR
const wallet = useEmbeddedSolanaWallet();

{isConnecting(wallet) && (
  Conecting...
)}

isConnecting(s)

isConnecting(s): s is EmbeddedSolanaWalletConnectingState

A type predicate to narrow the Embedded Wallet state to the Connecting state.

Parameters

s: EmbeddedSolanaWalletState

Returns

s is EmbeddedSolanaWalletConnectingState

Example

ts
import {useEmbeddedWallet, useEmbeddedSolanaWalet, isConnected} from '@privy-io/expo';

const wallet = useEmbeddedWallet();
/// OR
const wallet = useEmbeddedSolanaWallet();

{isConnecting(wallet) && (
  Conecting...
)}