Skip to content

Commit

Permalink
Keep ObservableQuery initialFetchPolicy member private for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Jul 9, 2021
1 parent 8d89f49 commit 8ec5412
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/ObservableQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class ObservableQuery<

// Original value of this.options.fetchPolicy (defaulting to "cache-first"),
// from whenever the ObservableQuery was first created.
public initialFetchPolicy: WatchQueryFetchPolicy;
private initialFetchPolicy: WatchQueryFetchPolicy;

private isTornDown: boolean;
private queryManager: QueryManager<any>;
Expand Down
2 changes: 1 addition & 1 deletion src/core/__tests__/ObservableQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ describe('ObservableQuery', () => {
});

expect(observable.options.fetchPolicy).toBe('cache-and-network');
expect(observable.initialFetchPolicy).toBe('cache-and-network');
expect(observable["initialFetchPolicy"]).toBe('cache-and-network');

subscribeAndCount(reject, observable, (handleCount, result) => {
expect(result.error).toBeUndefined();
Expand Down

0 comments on commit 8ec5412

Please sign in to comment.