Page MenuHomePhabricator

D14187.id46615.diff
No OneTemporary

D14187.id46615.diff

diff --git a/native/profile/relationship-list.react.js b/native/profile/relationship-list.react.js
--- a/native/profile/relationship-list.react.js
+++ b/native/profile/relationship-list.react.js
@@ -295,6 +295,7 @@
const { setOptions } = navigation;
const prevNoCurrentTags = React.useRef(noCurrentTags);
+ const prevOnPressAdd = React.useRef(onPressAdd);
const loadingStatus = useSelector(loadingStatusSelector);
React.useEffect(() => {
let setSaveButtonDisabled;
@@ -304,9 +305,14 @@
setSaveButtonDisabled = false;
}
prevNoCurrentTags.current = noCurrentTags;
- if (setSaveButtonDisabled === undefined) {
+ if (
+ setSaveButtonDisabled === undefined &&
+ prevOnPressAdd.current === onPressAdd
+ ) {
return;
}
+ prevOnPressAdd.current = onPressAdd;
+
setOptions({
headerRight: () => (
<LinkButton

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 10, 8:25 AM (10 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2846593
Default Alt Text
D14187.id46615.diff (891 B)

Event Timeline