'component not re-rendering after post request
I'm mapping a list of users in a table and have a dropdown with roles for each user, where i display the roles for each user close to their name, when i select a role for a specific user i make a post request to set/delete the role, request is successful but the area where i display the roles is not getting updated/re-rendered, to be specific i have a parent component where i get users from the redux store and map them with a specific component for each user
{!!users && users.length > 0 ? (
users.map(user => (
<AdminUsersTableBody
user={user}
strings={strings}
key={user.id}
/>
))
) : (
<EmptyStateComponent
spanType="mdi-account"
message={strings.no_invited_users}
/>
)}
i make the dispatches inside the AdminUsersTableBody
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
