Comments (2)
@ngneat/query
is just a mere wrapper/adapter to the underlying @tanstack/query
, it doesnt transform any default options, every default option that is set from the get go is set by @tanstack/query
.
Taken from the actual file (packages/ng-query/src/lib/providers.ts):
export const QUERY_CLIENT_OPTIONS = new InjectionToken<QueryClientConfig>(
'QUERY_CLIENT_OPTIONS',
{
providedIn: 'root',
factory() {
return {}; // <--
},
}
);
as you can see it only provides an empty object, that later gets passed to the QueryCore instance (packages/ng-query/src/lib/query-client.ts):
const QueryClient = new InjectionToken<QueryCore>('QueryClient', {
providedIn: 'root',
factory() {
return new QueryCore(inject(QUERY_CLIENT_OPTIONS));
},
});
these are the only references and it doesnt get transformed midway.
I think that your "bug" is not related to either of these packages. For the "stuck in fetching" part we would need to see an example, a stackblitz or reproducable repository would be good.
@NetanelBasal i think you'd agree if i say that this issue can be closed and continued in the discussions section
from query.
Yes I don't mind if you move to the discussions page. I understand that this is an adapter but was wondering if the behaviour is still introduced on this side. I also use tanstack query in react projects and don't get the same problem unfortunately
from query.
Related Issues (20)
- SSR snippets outdated? HOT 1
- 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
- Auto Refetching example playground HOT 3
- Placeholder data example
- After an unsubscribe on result$ mutation, mutation is no longer working HOT 9
- Optimistic updates example doesn't work HOT 2
- Documentation navigation menu doesn't open on mobile HOT 1
- `refetchOnWindowFocus` in module's providers doesn't have any effect HOT 2
- Allow to pass observable as state keys HOT 5
- Add mapResultsData operator
- Allow constructor injection for QueryClientService 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.