Skip to content

Commit

Permalink
ComposeBox [nfc]: Acknowledge and make clear a type-checking lack.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbobbe committed Sep 9, 2020
1 parent c1f9d15 commit 333c312
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/compose/ComposeBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,16 @@ class ComposeBox extends PureComponent<Props, State> {

messageInputRef = React.createRef<TextInput>();
topicInputRef = React.createRef<TextInput>();
mentionWarnings: React$ElementRef<MentionWarnings> = React.createRef();

// TODO: Type-check this, once we've adjusted our `react-redux`
// wrapper to do the right thing. It should be
//
// mentionWarnings = React.createRef<typeof MentionWarnings>()
//
// but we need our `react-redux` wrapper to be aware of
// `getWrappedInstance`, since we need to access that.
mentionWarnings = React.createRef();

inputBlurTimeoutId: ?TimeoutID = null;

state = {
Expand Down

0 comments on commit 333c312

Please sign in to comment.