Unblock React Compiler for 13 components by hoisting finally blocks (#11540)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -429,14 +429,13 @@ let PostMenuItems = ({
|
||||
type: 'error',
|
||||
})
|
||||
}
|
||||
} finally {
|
||||
ax.metric('postMenu:blockAccount', {
|
||||
uri: postUri,
|
||||
authorDid: postAuthor.did,
|
||||
logContext,
|
||||
feedDescriptor: feedFeedback.feedDescriptor,
|
||||
})
|
||||
}
|
||||
ax.metric('postMenu:blockAccount', {
|
||||
uri: postUri,
|
||||
authorDid: postAuthor.did,
|
||||
logContext,
|
||||
feedDescriptor: feedFeedback.feedDescriptor,
|
||||
})
|
||||
}
|
||||
|
||||
const onMuteAuthor = async () => {
|
||||
@@ -452,14 +451,13 @@ let PostMenuItems = ({
|
||||
type: 'error',
|
||||
})
|
||||
}
|
||||
} finally {
|
||||
ax.metric('postMenu:unmuteAccount', {
|
||||
uri: postUri,
|
||||
authorDid: postAuthor.did,
|
||||
logContext,
|
||||
feedDescriptor: feedFeedback.feedDescriptor,
|
||||
})
|
||||
}
|
||||
ax.metric('postMenu:unmuteAccount', {
|
||||
uri: postUri,
|
||||
authorDid: postAuthor.did,
|
||||
logContext,
|
||||
feedDescriptor: feedFeedback.feedDescriptor,
|
||||
})
|
||||
} else {
|
||||
try {
|
||||
await queueMute()
|
||||
@@ -472,14 +470,13 @@ let PostMenuItems = ({
|
||||
type: 'error',
|
||||
})
|
||||
}
|
||||
} finally {
|
||||
ax.metric('postMenu:muteAccount', {
|
||||
uri: postUri,
|
||||
authorDid: postAuthor.did,
|
||||
logContext,
|
||||
feedDescriptor: feedFeedback.feedDescriptor,
|
||||
})
|
||||
}
|
||||
ax.metric('postMenu:muteAccount', {
|
||||
uri: postUri,
|
||||
authorDid: postAuthor.did,
|
||||
logContext,
|
||||
feedDescriptor: feedFeedback.feedDescriptor,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -95,9 +95,8 @@ function DeviceLocationRequestDialogInner({onLocationAcquired}: Props) {
|
||||
safeMessage: e.message,
|
||||
})
|
||||
}
|
||||
} finally {
|
||||
setIsRequesting(false)
|
||||
}
|
||||
setIsRequesting(false)
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -241,9 +241,8 @@ export function PostInteractionSettingsDialogControlledInner(
|
||||
type: 'error',
|
||||
},
|
||||
)
|
||||
} finally {
|
||||
setIsSaving(false)
|
||||
}
|
||||
setIsSaving(false)
|
||||
}, [
|
||||
_,
|
||||
ax,
|
||||
|
||||
@@ -319,9 +319,8 @@ function Inner(
|
||||
type: 'setError',
|
||||
error,
|
||||
})
|
||||
} finally {
|
||||
setIsPending(false)
|
||||
}
|
||||
setIsPending(false)
|
||||
}, [logger, submitReport, props, state, ax, l, videoTimestampSeconds])
|
||||
|
||||
useCallOnce(() => {
|
||||
|
||||
Reference in New Issue
Block a user