You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Violation:LogicalExpression cannot be safely reordered (BuildHIR::lowerReorderableExpression, Hint, line 122): the isMac default parameter value (navigator.platform?.toUpperCase().includes('MAC') ?? false).
Steps
Reproduce and confirm. Hint severity, but the component is still not memoized (confirmed in the compiled output).
Fix per #default-parameters-for-props: move the navigator.platform check out of the default-parameter position into the body so the expression is reorderable. Preserve the KeyboardShortcut.setTranslateKey public API.
Confirm the count dropped; let the hook update the record file.
Part of #1066.
src/components/keyboard-shortcut/keyboard-shortcut.tsxLogicalExpression cannot be safely reordered(BuildHIR::lowerReorderableExpression, Hint, line 122): theisMacdefault parameter value (navigator.platform?.toUpperCase().includes('MAC') ?? false).Steps
Hintseverity, but the component is still not memoized (confirmed in the compiled output).#default-parameters-for-props: move thenavigator.platformcheck out of the default-parameter position into the body so the expression is reorderable. Preserve theKeyboardShortcut.setTranslateKeypublic API.