Adding new data in state with redux

I have a code as below. I want to have a reducer to update array of profiles when they are existed and add new one if they are not. The below code is just profile need to make it for array as you can see payload is array. Thanks for the help. enter image description here

I hope the Image and explanation would be enough. Thanks.



from Recent Questions - Stack Overflow https://ift.tt/3sWwnRH
https://ift.tt/3gMufK1

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation