Git Product home page Git Product logo

Comments (2)

christianalfoni avatar christianalfoni commented on May 20, 2024

Hi @formula349 ,

Thanks for great input!

I can say that it is currently out of scope and I think we need a bit more experience before deciding something.

What I can say for now is that it does add complexity. There is no longer a single point to define and use signals, you have to know at what path that signal is related to. I think it also would be more difficult to refactor such a signal.

Maybe it is a better idea to have multiple cerebral instances? So if each site actually does not have anything to do with the other you could consider it "a different person". So you have two different top components where you inject two different cerebrals. Would that make sense?

from cerebral.

christianalfoni avatar christianalfoni commented on May 20, 2024

reading this issue again I think it breaks the architecture. Signals has no knowledge of state and that is important, they only request state changes. Though I do think we will meet issues with structuring larger applications, but I think we should wait to solve that until we have some more examples.

So I am all for some sort of dividing signals and possibly an entrypath to state changes, but not base signals on a specific state. Again, let me know if you get into trouble and we can bring up a discussion on it :-)

from cerebral.

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.