• Preparing search index...
  • The search index is not available
Lens SDK Reference
  • Lens SDK Reference
  • @lens-protocol/react-web
  • Core
  • useLazyWasWalletInvited

Function useLazyWasWalletInvited

  • useLazyWasWalletInvited(): UseDeferredTask<boolean, UnspecifiedError, UseWasWalletInvitedArgs>
  • Experimental

    Check if a wallet was already invited in a lazy way.

    This hook will not execute until the returned function is called.

    This hook is experimental and may change in the future.

    Returns UseDeferredTask<boolean, UnspecifiedError, UseWasWalletInvitedArgs>

    Example

    const { called, data, error, loading, execute } = useLazyWasWalletInvited();

    const callback = async () => {
    const result = await execute({ for: '0x1234567890123456789012345678901234567890' });

    if (result.isFailure()) {
    toast.error(result.error.message);
    return;
    }

    const wasInvited = result.value;

    // continue
    }
    • Defined in packages/react/src/misc/useWasWalletInvited.ts:70

Settings

Member Visibility

Theme

Lens SDK Reference
  • @lens-protocol/react-web - v2.3.2
  • @lens-protocol/react-native - v2.3.2
  • @lens-protocol/client - v2.3.2