Migration to v18 -> @ngrx/signals: SignalStore members cannot be overridden. Trying to override... how to solve? #4520
Unanswered
TomaszStanik
asked this question in
Q&A
Replies: 1 comment
-
@TomaszStanik, so the SignalStore's features are not meant to be overriden. We don't see these features as class inheritance. You should apply "composition over inheritance" instead. Can you design your SignalStore so that the features don't expose Do you understand what I mean? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have 3 signalStoreFeatures.
A, B, C
A got methods
refresh
(and many other logic)B inherits A and overrides
refresh
method (needs to pass extra params to method)C inherits B and overrides
refresh
method (needs to pass extra params to method)How to deal with that? This is how my few features worked and now I'm noticing many warnings.
I found this topic: #4199
but

{allowOverrides: true},
I could not use in signalStoreFeature.Beta Was this translation helpful? Give feedback.
All reactions