Coder Social home page Coder Social logo

Comments (4)

jyjor avatar jyjor commented on June 23, 2024

I have seen this same problem before when a previous with*** function had an error in it. In my case, there was no TypeScript error and the only indication that something was wrong was that the store stopped working.
Assuming you are experiencing the same thing, try commenting out the withMethods((store) => {...}) --> all fine upto this point function call, and check to see if the store in the final withMethods then works. If it does, you should be able to incrementally uncomment code until you can isolate the exact spot that is causing the error.

from platform.

timdeschryver avatar timdeschryver commented on June 23, 2024

Please provide a reproduction, otherwise we won't be able to investigate this.

store in the method returns store: {[p:string]: function():?)

Side note, this returns a void, while withMethods expects an object.

// returns void
withMethods((store) => {})

// add braces to return an empty object
withMethods((store) => ({}))

I have a signal store. Its fairly long

The underlying issue might be related to #4314

from platform.

markostanimirovic avatar markostanimirovic commented on June 23, 2024

Feel free to reopen this issue with the provided reproduction.

from platform.

dreamstar-enterprises avatar dreamstar-enterprises commented on June 23, 2024

Hi Mark,

I think I hit some sort of limit, as I ended up spliting the store into two, and it worked without any problems (about 5 withStatements... in each)

I think there have been some suggestions for adding some kind of builder method, but I'm very happy so far with my NgRx experience so far. It's completely organised my code base (for variables)

The NgRx documentation is also very good.

My only feedback perhaps would be some examples on deep signals, as I had problems using the inbuilt Entity method, and ended up creating my own deep signalled Map property, that had dynamic keys, and with them objects as values.

Apart from that, I'm happy so far.

Cheers

from platform.

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.