Commit d8f7407b authored by Florent Chehab's avatar Florent Chehab

[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
Pipeline #35648 failed with stages
in 108 minutes and 33 seconds
...@@ -98,7 +98,7 @@ class CustomComponentForAPI extends Component { ...@@ -98,7 +98,7 @@ class CustomComponentForAPI extends Component {
&& successActionsWithReads && successActionsWithReads
.filter(action => action in prop) // general handling of all types of API reducers .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 .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) .filter(action => action in prop)
.every(action => prop[action] === false); .every(action => prop[action] === false);
} }
......
Markdown is supported
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