Comments (4)
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.
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.
Feel free to reopen this issue with the provided reproduction.
from platform.
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)
- Allow generics in ngrx signals withEntites HOT 2
- RFC: `signalStoreFeature` and access to Store HOT 7
- How do you add a Pipe provider to a SignalStore, and SignalStore provider to a Service?
- NgRx Signal Store: functions inside OnInit hook, don't run when store is injected into normal service HOT 1
- Do 'createSelector' can access to the previous value of the state inside the function ?
- PSA: Angular v18 and NgRx v18 HOT 10
- NGRX Signals Needs support for Angular 18 HOT 1
- Remove effects/concatLatestFrom docs HOT 4
- Remove component-store/tapResponse docs
- ngrx.io dns is down HOT 3
- ngrx.io server is down HOT 1
- Add support for ESLint v9
- computed not re-calculating if signal is inside function HOT 1
- [Bug] @ngrx/signals: DeepSignal is not exported HOT 3
- UpdateStr and UpdateNum are not export in index HOT 2
- Document ESLint v9 support
- Add v18 migration guide
- Add eslint rule for signalState and withState
- [18.0.0-rc.0] Failed to load config "plugin:@ngrx/recommended-requiring-type-checking" HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform.