Skip to content

Commit d346073

Browse files
chrisbobbegnprice
authored andcommitted
ComposeBox [nfc]: Say a more accurate thing in a TODO.
We should be passing a `React$ElementRef` type as a type argument to `React.createRef`; see #4278 (comment).
1 parent 79090fd commit d346073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compose/ComposeBox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class ComposeBox extends PureComponent<Props, State> {
136136
// TODO: Type-check this, once we've adjusted our `react-redux`
137137
// wrapper to do the right thing. It should be
138138
//
139-
// mentionWarnings = React.createRef<typeof MentionWarnings>()
139+
// mentionWarnings = React.createRef<React$ElementRef<MentionWarnings>>()
140140
//
141141
// but we need our `react-redux` wrapper to be aware of
142142
// `{ forwardRef: true }`, since we use that.

0 commit comments

Comments
 (0)