-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
signalState changes passed array to map #4316
Comments
There are two options that you can use:
|
@markostanimirovic we are using the second option now, but some level of error or warning would have been nice in the development or at least in the documentation. |
Will deep signals be supported for maps like this? E.g. so computed signals can be created on specific keys, whose values might be arrays?
Currently, I think only this works
|
Which @ngrx/* package(s) are the source of the bug?
signals
Minimal reproduction of the bug/regression with instructions
https://stackblitz.com/edit/angular-17-starter-project-cexglh?file=src%2Fmain.ts
Expected behavior
The type of the passed state should not change - even if no deep signals are created. (Looking at the unit test here:
platform/modules/signals/spec/types/signal-state.types.spec.ts
Line 121 in 51034e6
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
@ngrx/signals: 17.2.0
@angular: 17.0.4
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: