Skip to content

Commit

Permalink
Update disabling-queries.md
Browse files Browse the repository at this point in the history
I believe this is what you meant? 
Thought note that because of the way signals work, typescript will not be able to do type narrowing here.
  • Loading branch information
ShacharHarshuv committed Apr 24, 2024
1 parent 2ffd9fb commit 6f9c330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/framework/angular/guides/disabling-queries.md
Expand Up @@ -85,7 +85,7 @@ export class TodosComponent {

todosQuery = injectQuery(() => ({
queryKey: ['todos', this.filter()],
queryFn: this.filter ? () => fetchTodos(this.filter()) : skipToken,
queryFn: this.filter() ? () => fetchTodos(this.filter()) : skipToken,
}))
}
```
Expand Down

0 comments on commit 6f9c330

Please sign in to comment.