GithubHelp home page GithubHelp logo

Comments (2)

luii avatar luii commented on May 22, 2024

@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.

stevebrowndotco avatar stevebrowndotco commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.