Comments (6)
I'm currently grappling with the complete grasp of the issue and its corresponding solution. It would greatly aid my understanding if you could provide two Stackblitz instances: one illustrating the current behavior along with any missing functionalities, and a second one showcasing your proposed solution in action.
from query.
Sure! My workaround contains a lot of code that is not really important. The major point is that I also proxied the refetch function in the result.
Here is an example:
https://stackblitz.com/edit/stackblitz-starters-kwhcvj?file=src%2Fmain.ts
Does this help?
Oh, I provided only one example here - it contains both the current state as well as the workaround. If I should change something to clarify it, just tell me!
from query.
So you want to add the refetch method to intersectResults?
from query.
Exactly. 🙈
from query.
Sure, you're welcome to submit a PR. Note that you probably only need to run the Promise.all function without returning any values and it will work the same.
from query.
I added a pull request. I did not add a unit test since I did not find any unit tests for the signals.ts file - is this correct?
Just tell me if I should change something!
from query.
Related Issues (20)
- provideQueryClientOptions changes behaviour of queries even when not changing any default properties HOT 2
- Add `mapResultsData` operator to `README.md` and the playground
- TanStack Query v5 support HOT 8
- Missing type for the returned observable in `base-query`
- Support an observable in queryFn like we had in v1 HOT 1
- Sync `mutate` function is missing the mutation options as parameter HOT 4
- Break the object reference of the result returned by the base query/mutation HOT 3
- DevTools Not Showing Queries After Updating from 2.0.0-beta.7 to 2.0.0-beta.8 HOT 2
- Cannot find module '@tanstack/query-core/build/legacy/queryClient-b7fce2ff' HOT 2
- Export MutationResult and CreateMutationOptions
- createSuccessObserverResult should also take a generic error HOT 3
- mutate function should subscribe to mutationObserver HOT 1
- Automatically unsubscribe query observable HOT 1
- Failure to deduplicate network requests HOT 12
- multiple fired network HOT 2
- onSuccess is never triggered when passed as option to mutate HOT 3
- Should ngneat/query Cache Pages Instead of Fetching on Each Pagination Click?
- support: angular v18 HOT 5
- bug: `throwOnError` does not work HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from query.