Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

useReconnect

Usage

import { useReconnect } from '@ivem/kit-vue'
 
const reconnect = useReconnect()
await reconnect.mutateAsync()

Parameters

  • None

Return Type

  • mutate() => void
  • mutateAsync() => Promise<{ accounts: readonly string[]; chainId: string } | null>
  • isPending: Ref<boolean>
  • error: Ref<Error | null>

Examples

onMounted(() => reconnect.mutate())

Related