- useConstants(): {
addConstant: ((key: string, value: string) => Promise<void>);
constants: Ref<{
__typename?: "Constant";
id: string;
value: any;
}[]>;
filters: {
id: string;
limit: number;
offset: number;
};
isLoadFailed: Ref<boolean>;
isLoaded: Ref<boolean>;
isSubmitting: Ref<boolean>;
loadConstants: (() => Promise<void>);
removeConstant: ((key: string) => Promise<void>);
}
-
Returns {
addConstant: ((key: string, value: string) => Promise<void>);
constants: Ref<{
__typename?: "Constant";
id: string;
value: any;
}[]>;
filters: {
id: string;
limit: number;
offset: number;
};
isLoadFailed: Ref<boolean>;
isLoaded: Ref<boolean>;
isSubmitting: Ref<boolean>;
loadConstants: (() => Promise<void>);
removeConstant: ((key: string) => Promise<void>);
}
-
addConstant: ((key: string, value: string) => Promise<void>)
-
- (key: string, value: string): Promise<void>
-
Parameters
-
key: string
-
value: string
Returns Promise<void>
-
constants: Ref<{
__typename?: "Constant";
id: string;
value: any;
}[]>
-
filters: {
id: string;
limit: number;
offset: number;
}
-
id: string
-
limit: number
-
offset: number
-
isLoadFailed: Ref<boolean>
-
isLoaded: Ref<boolean>
-
isSubmitting: Ref<boolean>
-
loadConstants: (() => Promise<void>)
-
- (): Promise<void>
-
Returns Promise<void>
-
removeConstant: ((key: string) => Promise<void>)
-
- (key: string): Promise<void>
-
Returns Promise<void>