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
Which @ngrx/* package(s) are the source of the bug?
signals
Minimal reproduction of the bug/regression with instructions
I'm not sure if this is intentional or not: it's possible to define a computed field with the same name as a field already defined in the initial state.
Which @ngrx/* package(s) are the source of the bug?
signals
Minimal reproduction of the bug/regression with instructions
I'm not sure if this is intentional or not: it's possible to define a computed field with the same name as a field already defined in the initial state.
Reproduction:
https://stackblitz.com/edit/stackblitz-starters-atpbi6?file=src%2Fmain.ts
For posterity, here's the store definition used in the StackBlitz above:
This may lead to unintentional bugs.
Expected behavior
You should get an error if you try to define a computed field with same name as an existing field in the initial state.
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
Angular: v17
NgRx: v17.0.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: