You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to chain signal store features, so that it is possible to create a better structure for more complicated signal states, where several features can access shared state slices, computed signals and methods.
Correct, it can be fixed with unused generic. And I agree with you, this is unintuitive TypeScript behavior.
Once we change SignalStore types to disable property/method overriding, the type implementation will be simpler, so this issue may disappear. Let's see.
Which @ngrx/* package(s) are the source of the bug?
signals
Minimal reproduction of the bug/regression with instructions
I have a signal store and two signal store features with input declared as functions.
And it fails.
If I add only one feature, it works:
It also works if I add features inline:
The same problem occurs with other setups, when the feature input contains not state, but signals.
I have created a playground, where the problem can be reproduced https://stackblitz.com/edit/stackblitz-starters-dm1urm?file=src%2Ffoobar.store.ts
Expected behavior
It should be possible to chain signal store features, so that it is possible to create a better structure for more complicated signal states, where several features can access shared state slices, computed signals and methods.
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
NgRx: 17.1.1
Angular: 17.2.4
Node: 18.16.0
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: