Git Product home page Git Product logo

Comments (4)

JeanMeche avatar JeanMeche commented on May 16, 2024

Hi, the subject of explicit effect dependencies was already discussed here: #50916.

from angular.

mauriziocescon avatar mauriziocescon commented on May 16, 2024

I know, it's discussed in many places directly or indirectly.

But in #50916, the idea is to modify the current effect function... which I personally don't like as an approach. Let's keep effect as it is.

What I'd ideally like to discuss is the following:

  • is it really true that effects can be rarely used?
  • what are the official counterarguments for not introducing a watch func?

As I tried to report above, my view is that the usage of effects_untrack is just kind of hidden and highly necessary (and used a lot) for common needs.

It's just that we're still mixing signals / observables... so it's not really clear. But with only signals, I have the feeling the story would be different.

IMO effects would turn (almost) unnecessary with the addition of a watch func.

from angular.

pkozlowski-opensource avatar pkozlowski-opensource commented on May 16, 2024

@mauriziocescon this issue essentially re-iterates what was already described in #55027. We hear you but I don't think an additional issue gets us any closer to the solution - what you are describing is well understood.

Let's centralize the discussion in #55027 which represents a real-life use-case.

from angular.

mauriziocescon avatar mauriziocescon commented on May 16, 2024

Ok, my bad... just started integrating signals and I find myself using the pattern above in many places! 😂

Gonna create a wrapper for now... 😂

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.