Giter Club home page Giter Club logo

Comments (3)

JoostK avatar JoostK commented on June 2, 2024

The signal APIs reflect the factual query state and is not meant to be mutated. If you need to influence their ordering, you'll have to derive a second state value from the query signal.

QueryList.reset itself wasn't really intended to public either, it is an implementation detail that that ended up being public.

from angular.

pkozlowski-opensource avatar pkozlowski-opensource commented on June 2, 2024

I would very much like to echo @JoostK message - the QueryList.reset ended up in the public API by an unfortunate accident - it never meant to be public / used by application developers.

As @JoostK mentioned one way of going about re-ordering of results would be to use a computed signal. Having said this I'm curious about the exact use-case that you are trying to address - would you mind share more info on why the re-ordering is needed?

from angular.

ChristianKlima avatar ChristianKlima commented on June 2, 2024

Thank you for the response, I understand. The use case was a Carousel component where the position of the contents needs to be swapped, all without triggering the ChangeDetection. I believe I might find an alternative solution for this. I just wanted to inquire if there was a replacement for the reset function. Since it's not intended to be public anyway, I'll have to find a different approach. Many thanks, and greetings to the Angular Team!

from angular.

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.