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
{{ message }}
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.
Entities are not being removed from state when the DESTROY_SUCCESS action is dispatched.
The reducer handles DESTROY_SUCCESS by replacing they values in data with the current values without the ID of the entity that was destroy. This happens here.
The helper method entitiesExceptID treats the action's payload.data as an ID.
When the DESTROY_SUCCESS action is dispatched, it received the response from the API as the argument here. This response is then "normalized" and becomes the action's payload.data here. This means that the data will not be the ID of the element that was removed, causing the bug.
The text was updated successfully, but these errors were encountered:
Entities are not being removed from state when the
DESTROY_SUCCESS
action is dispatched.The reducer handles
DESTROY_SUCCESS
by replacing they values indata
with the current values without the ID of the entity that was destroy. This happens here.The helper method entitiesExceptID treats the action's payload.data as an ID.
When the
DESTROY_SUCCESS
action is dispatched, it received the response from the API as the argument here. This response is then "normalized" and becomes the action's payload.data here. This means that the data will not be the ID of the element that was removed, causing the bug.The text was updated successfully, but these errors were encountered: