Skip to content

Cannot read property from Map that is a signal #4341

Discussion options

You must be logged in to vote

Somebody has already done a great job of answering why

store.Map()[key] wasn't triggering in a compute, when a nested item (like a nested array) changed.
(My manual way, I'm still not sure why it didn't work)

But, after giving up, the next day (this morning) I then ungave up, and found this documentation: https://ngrx.io/guide/signals/signal-store/entity-management

It worked great, when you have data in Maps. (somehow the library takes care of any deep signalling changes)

Replies: 6 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@dreamstar-enterprises
Comment options

@rainerhahnekamp
Comment options

@dreamstar-enterprises
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@MeMeMax
Comment options

@dreamstar-enterprises
Comment options

@MeMeMax
Comment options

@dreamstar-enterprises
Comment options

@MeMeMax
Comment options

Answer selected by dreamstar-enterprises
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4333 on May 14, 2024 18:49.