Commit d8f7407b authored by Florent Chehab's avatar Florent Chehab
Browse files

[IMPORTANT] consider prop as usuable when updating or creating.

Prevent useless unmounting
This is regression that was introduced
in the redesign of the crud creation
parent 0548cbb7
......@@ -98,7 +98,7 @@ class CustomComponentForAPI extends Component {
&& successActionsWithReads
.filter(action => action in prop) // general handling of all types of API reducers
.some(action => prop[action].readAt !== 0) // makes sure will consider all success actions
&& ["isReading", "isUpdating", "isCreating"]
&& ["isReading"]//, "isUpdating", "isCreating"] Don't put those in here it may cause unwanted rerendering whole tree when saving
.filter(action => action in prop)
.every(action => prop[action] === false);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment