-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Angular-query): add Angular auto-refetching example #8371
Merged
arnoud-dv
merged 22 commits into
TanStack:main
from
MatanShushan:feat/query-example-angular-auto-refetching
Dec 4, 2024
Merged
feat(Angular-query): add Angular auto-refetching example #8371
arnoud-dv
merged 22 commits into
TanStack:main
from
MatanShushan:feat/query-example-angular-auto-refetching
Dec 4, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Implement an example showcasing auto-refetching in Angular using TanStack Query. Includes a mock API interceptor to simulate HTTP calls for tasks.
Implement an example showcasing auto-refetching in Angular using TanStack Query. Includes a mock API interceptor to simulate HTTP calls for tasks.
MatanShushan
changed the title
feat(examples): add Angular auto-refetching example
feat(Angular query): add Angular auto-refetching example
Nov 28, 2024
MatanShushan
changed the title
feat(Angular query): add Angular auto-refetching example
feat(Angular-query): add Angular auto-refetching example
Nov 28, 2024
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 8372d7e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 2 targetsSent with 💌 from NxCloud. |
…om:MatanShushan/query into feat/query-example-angular-auto-refetching
arnoud-dv
requested changes
Nov 30, 2024
examples/angular/auto-refetching/.devcontainer/devcontainer.json
Outdated
Show resolved
Hide resolved
examples/angular/auto-refetching/src/app/interceptor/mock-api.interceptor.ts
Outdated
Show resolved
Hide resolved
examples/angular/auto-refetching/src/app/services/tasks.service.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Arnoud <[email protected]>
Co-authored-by: Arnoud <[email protected]>
Co-authored-by: Arnoud <[email protected]>
Co-authored-by: Arnoud <[email protected]>
Co-authored-by: Arnoud <[email protected]>
Co-authored-by: Arnoud <[email protected]>
Co-authored-by: Arnoud <[email protected]>
…asks to quert options obj
github-actions
bot
added
the
documentation
Improvements or additions to documentation
label
Dec 4, 2024
arnoud-dv
approved these changes
Dec 4, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #8371 +/- ##
=======================================
Coverage 46.12% 46.12%
=======================================
Files 200 200
Lines 7502 7502
Branches 1713 1715 +2
=======================================
Hits 3460 3460
Misses 3667 3667
Partials 375 375 |
arnoud-dv
force-pushed
the
feat/query-example-angular-auto-refetching
branch
from
December 4, 2024 23:27
8372d7e
to
87f2e6b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces an auto-refetching example, utilizing
@tanstack/angular-query-experimental
, similar to the existing React example.Key Features:
@tanstack/angular-query-experimental
.MockApiInterceptor
to simulate API calls (GET, POST, DELETE) for task management vialocalStorage
.@tanstack/angular-query-experimental
with Angular's dependency injection and HttpClient.How It Complements the Project:
@tanstack/angular-query-experimental
a practical and fully functional reference.Testing:
pnpm run dev
in theexamples/angular-auto-refetching
directory.localStorage
for demonstration.Notes: