Skip to content

Commit

Permalink
Merge pull request #142 from cassilup/patch-1
Browse files Browse the repository at this point in the history
docs: Fixing typo in code example
  • Loading branch information
NetanelBasal authored Dec 18, 2023
2 parents 98847d3 + e9a22b6 commit 82e6d3c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,8 +514,9 @@ import { injectIsFetching } from '@ngneat/query';

class TodoComponent {
#isFetching = injectIsFetching();

// How many queries overall are currently fetching data?
public isFetching$ = this.isFetching().result$;
public isFetching$ = this.#isFetching().result$;

// How many queries matching the todos prefix are currently fetching?
public isFetchingTodos$ = this.#isFetching({ queryKey: ['todos'] }).result$;
Expand All @@ -529,6 +530,7 @@ import { injectIsFetching } from '@ngneat/query';

class TodoComponent {
#isFetching = injectIsFetching();

// How many queries overall are currently fetching data?
public isFetching = this.#isFetching().result;

Expand All @@ -550,6 +552,7 @@ import { injectIsMutating } from '@ngneat/query';

class TodoComponent {
#isMutating = injectIsMutating();

// How many queries overall are currently fetching data?
public isFetching$ = this.#isMutating().result$;

Expand All @@ -565,6 +568,7 @@ import { injectIsMutating } from '@ngneat/query';

class TodoComponent {
#isMutating = injectIsMutating();

// How many queries overall are currently fetching data?
public isFetching = this.#isMutating().result;

Expand Down

0 comments on commit 82e6d3c

Please sign in to comment.