Skip to content

Commit

Permalink
update QueryHandler type signature and set cache:true option
Browse files Browse the repository at this point in the history
  • Loading branch information
mlwilkerson committed Jun 23, 2024
1 parent 463ec30 commit ea3196b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { faSadTear, faTire } from '../../utils/icons';
import { slotDefaults } from '../../utils/slots';
import { IconDefinition } from '../../utils/utils';

export type QueryHandler = (document: string, variables?: object) => Promise<any>;
export type QueryHandler = (document: string, variables?: object, options?: object) => Promise<any>;

type KitMetadata = {
version: string;
Expand Down Expand Up @@ -279,6 +279,7 @@ export class FaIconChooser {
}
`,
{ token: this.kitToken },
{ cache: true }
);

if (get(response, 'errors')) {
Expand Down

0 comments on commit ea3196b

Please sign in to comment.