Global Graffiti instance.
In the composition API use useGraffiti instead.
This is the same Graffiti registered with the GraffitiPlugin via GraffitiPluginOptions.graffiti, only it has been wrapped with GraffitiSynchronize. Be sure to use the wrapped instance to enable reactivity.
Global reactive GraffitiSession instance as a Vue ref.
In the composition API use useGraffitiSession instead.
While the application is loading and restoring any previous sessions,
the value will be undefined
. If the user is not logged in,
the value will be null
.
This only keeps track of one session. If your app needs
to support multiple login sessions, you'll need to manage them
yourself using Graffiti.sessionEvents
.
Custom properties added to component instances in any way and can be accessed through
this
Example
Here is an example of adding a property
$router
to every component instance: