Skip to content

Commit ea94950

Browse files
backnotpropclaude
andcommitted
fix: restore showPlanDiffMarketing to useEffect dependency arrays
The fix commit restored it to guard conditions but missed the dep arrays, creating a stale closure bug for keyboard shortcuts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1678be2 commit ea94950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/editor/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ const App: React.FC = () => {
855855
return () => window.removeEventListener('keydown', handleKeyDown);
856856
}, [
857857
showExport, showImport, showFeedbackPrompt, showClaudeCodeWarning, showAgentWarning,
858-
showPermissionModeSetup, showUIFeaturesSetup, showWhatsNew, pendingPasteImage,
858+
showPermissionModeSetup, showUIFeaturesSetup, showPlanDiffMarketing, showWhatsNew, pendingPasteImage,
859859
submitted, isSubmitting, isApiMode, linkedDocHook.isActive, annotations.length, annotateMode,
860860
origin, getAgentWarning,
861861
]);
@@ -1008,7 +1008,7 @@ const App: React.FC = () => {
10081008
return () => window.removeEventListener('keydown', handleSaveShortcut);
10091009
}, [
10101010
showExport, showFeedbackPrompt, showClaudeCodeWarning, showAgentWarning,
1011-
showPermissionModeSetup, showUIFeaturesSetup, showWhatsNew, pendingPasteImage,
1011+
showPermissionModeSetup, showUIFeaturesSetup, showPlanDiffMarketing, showWhatsNew, pendingPasteImage,
10121012
submitted, isApiMode, markdown, annotationsOutput,
10131013
]);
10141014

0 commit comments

Comments
 (0)