@graffiti-garden/wrapper-vue
    Preparing search index...

    Function useGraffitiActorToHandle

    • The Graffiti.actorToHandle method as a reactive composable for use in the Vue composition API.

      Its corresponding renderless component is GraffitiActorToHandle.

      The arguments of this composable are the same as Graffiti.actorToHandle, only they can also be Refs or getters. As they change the output will automatically update. Reactivity only triggers when the root array or object changes, not when the elements or properties change. If you need deep reactivity, wrap your argument in a getter.

      Parameters

      • actor: MaybeRefOrGetter<string>

      Returns {
          error: Ref<Error | null, Error | null>;
          handle: Ref<string | null | undefined, string | null | undefined>;
      }

      • handle: A ref containing the retrieved handle, undefined while loading, or null if not found or the lookup fails.
      • error: A ref containing the lookup error for failures other than not found, or null otherwise.