Skip to content
Discussion options

You must be logged in to vote

Hey @inwoodev. Indeed, ForEachStore and forEach reducer don't support non-keyed collections like Arrays for quite some time now. Because indices are not a stable identifier in Array, actions could be addressed to the wrong child reducer if one element of the array was removed for example.

To avoid the warning, you should convert your [CertificationUploadState] to an IdentifiedArray which is more or less like an OrderedDictionary, where each element is identified by an identifier instead of an index. If CertificationUploadState is Identifiable, you can directly create an IdentifiedArrayOf<CertificationUploadState> that will use this value's id as a key. If it's not the case, and while you …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@tgrapperon
Comment options

Comment options

You must be logged in to vote
2 replies
@inwoodev
Comment options

@tgrapperon
Comment options

Answer selected by inwoodev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants