Optionaloptions: OptionallegacyAutopoll: MaybeRefOrGetter<boolean>
objects: A ref that contains
an array of Graffiti objects.poll: A function that can be called to manually check for objects.
If a poll is already running, it waits for that poll.error: A ref containing a failure of the entire discovery, or null.
On failure, retries are automatic (e.g. to reconnect to the network).isFirstPoll: A boolean ref
that is true until the first successful discovery completes.
The Graffiti.discover method as a reactive composable for use in the Vue composition API.
Its corresponding renderless component is GraffitiDiscover.
The arguments of this composable are largely the same as Graffiti.discover, with the first two arguments and each option, including the optional session, also accepting Refs or getters. Set
options.autopolltotrueto automatically poll for new objects. As the arguments 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.