Interface: UseFavoritesOptions
Defined in: composables/vue/useFavorites.ts:36
Properties
graphqlClient
graphqlClient:
GraphQLClient
Defined in: composables/vue/useFavorites.ts:37
language?
optionallanguage?:Ref<string,string>
Defined in: composables/vue/useFavorites.ts:39
onCreate?
optionalonCreate?: (data) =>void
Defined in: composables/vue/useFavorites.ts:40
Parameters
data
Returns
void
onDelete?
optionalonDelete?: (id) =>void
Defined in: composables/vue/useFavorites.ts:42
Parameters
id
string
Returns
void
onEdit?
optionalonEdit?: (id,data) =>void
Defined in: composables/vue/useFavorites.ts:41
Parameters
id
string
data
Returns
void
onListChanged?
optionalonListChanged?: (change?) =>void
Defined in: composables/vue/useFavorites.ts:51
Called after a list mutation succeeds.
The change argument is optional so existing zero-argument callbacks keep
working, but without it a host cannot tell a create from a delete — which
makes the composable useless for analytics, audit trails or optimistic UI
that needs to know WHAT happened rather than merely THAT something did.
Parameters
change?
Returns
void
user
user:
Ref<AnyUser>
Defined in: composables/vue/useFavorites.ts:38