title: How do I avoid Flow-type warnings for React componentDidUpdate?
body: <p>My componentDidUpdate method is giving the following error:</p>
  
  <blockquote>
    <p>Incompatible override, should have signature: '(prevProps: ReadOnly<P>, prevState: ReadOnly, _prevContext: any): void</p>
  </blockquote>
  
  <p>I tried making that the return type, but then I run into errors:</p>
  
  <ul>
  <li>ReadOnly, P, S: Could not resolve name</li>
  <li>preContext: Incompatible override, should have type 'any'</li>
  </ul>
  
  <p>Code:</p>
  
  <pre><code>class EditableCell&lt;ID_TYPE&gt; extends React.Component&lt;Props&lt;ID_TYPE&gt;, State&gt; {
      componentDidUpdate(prevProps: ReadOnly&lt;P&gt;, prevState: ReadOnly&lt;S&gt;, _prevContext: any): void {...}
  
      ... }
  </code></pre>