Hook to join a space.
import { useJoinSpace } from '@towns-protocol/react-sdk'
function useJoinSpace( config?: ActionConfig<Spaces["joinSpace"]>, ): { data: void | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; joinSpace: (spaceId: string, signer: Signer, opts?: { skipMintMembership?: boolean; } | undefined) => Promise<void>; }
Source: useJoinSpace
ActionConfig<Spaces["joinSpace"]>
Configuration options for the action.
The joinSpace action and the status of the action.
{ data: void | undefined; error: Error | undefined; isPending: boolean; isSuccess: boolean; isError: boolean; joinSpace: (spaceId: string, signer: Signer, opts?: { skipMintMembership?: boolean; } | undefined) => Promise<void>; }
Was this page helpful?