Skip to content

Commit d9d07e1

Browse files
committed
restrict findNodeHandle import
1 parent 29784a8 commit d9d07e1

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ const restrictedImportPaths = [
106106
importNames: ['useOnyx'],
107107
message: "Please use '@hooks/useOnyx' instead.",
108108
},
109+
{
110+
name: '@src/utils/findNodeHandle',
111+
message: "Do not use 'findNodeHandle' as it is no longer supported on web.",
112+
},
109113
];
110114

111115
const restrictedImportPatterns = [

src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import CONST from '@src/CONST';
5959
import ONYXKEYS from '@src/ONYXKEYS';
6060
import type * as OnyxTypes from '@src/types/onyx';
6161
import type ChildrenProps from '@src/types/utils/ChildrenProps';
62+
// eslint-disable-next-line no-restricted-imports
6263
import findNodeHandle from '@src/utils/findNodeHandle';
6364

6465
type SyncSelection = {

src/pages/home/report/ReportActionItemMessageEdit.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import setShouldShowComposeInputKeyboardAware from '@libs/setShouldShowComposeIn
4545
import CONST from '@src/CONST';
4646
import ONYXKEYS from '@src/ONYXKEYS';
4747
import type * as OnyxTypes from '@src/types/onyx';
48+
// eslint-disable-next-line no-restricted-imports
4849
import findNodeHandle from '@src/utils/findNodeHandle';
4950
import KeyboardUtils from '@src/utils/keyboard';
5051
import * as ReportActionContextMenu from './ContextMenu/ReportActionContextMenu';

0 commit comments

Comments
 (0)