Skip to content

Commit

Permalink
chore: fix glint in test-app; fix lint issues
Browse files Browse the repository at this point in the history
josemarluedke committed Jan 18, 2025
1 parent 40447bc commit c4671e4
Showing 5 changed files with 60 additions and 348 deletions.
6 changes: 3 additions & 3 deletions glimmer-apollo/package.json
Original file line number Diff line number Diff line change
@@ -58,9 +58,9 @@
"@babel/runtime": "^7.25.6",
"@embroider/addon-dev": "^7.1.0",
"@eslint/js": "^9.17.0",
"@glint/core": "^1.4.0",
"@glint/environment-ember-loose": "^1.4.0",
"@glint/environment-ember-template-imports": "^1.4.0",
"@glint/core": "^1.5.1",
"@glint/environment-ember-loose": "^1.5.1",
"@glint/environment-ember-template-imports": "^1.5.1",
"@glint/template": "^1.5.1",
"@rollup/plugin-babel": "^6.0.4",
"@tsconfig/ember": "^3.0.8",
8 changes: 6 additions & 2 deletions glimmer-apollo/src/-private/observable.ts
Original file line number Diff line number Diff line change
@@ -20,8 +20,12 @@ export default class ObservableResource<
this.observable = observable;
}

refetch = (variables?: Partial<TVariables>) =>
this.observable?.refetch(variables);
refetch = (variables?: Partial<TVariables> | MouseEvent) => {
if (variables instanceof MouseEvent) {
return this.observable?.refetch();
}
return this.observable?.refetch(variables);
};

fetchMore = <
TFetchData = TData,
Loading

0 comments on commit c4671e4

Please sign in to comment.