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

    Function useGraffitiGet

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

      Its corresponding renderless component is GraffitiGet.

      The arguments of this composable are the same as Graffiti.get, 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.

      Type Parameters

      • Schema extends JSONSchema

      Parameters

      • url: MaybeRefOrGetter<string | GraffitiObjectUrl>
      • schema: MaybeRefOrGetter<Schema>
      • Optionalsession: MaybeRefOrGetter<GraffitiSession | null | undefined>

      Returns {
          object: Ref<GraffitiObject<Schema> | null | undefined>;
          poll: () => Promise<void>;
      }

      • object: A ref that contains the retrieved Graffiti object, if it exists. If the object cannot be found, the result is null. If the object is still being fetched, the result is undefined.
      • poll: A function that can be called to manually check if the object has changed.