title: Material-ui Autocomplete warning The value provided to Autocomplete is invalid
body: <p>I am working with React and material-ui.. I just realize i have a warning with the Autocomplete component when i try to submit the form, so i tried to do something really basic just like in the documentation:</p>
  
  <pre><code>let Form = props =&gt; {
  
    return(
          &lt;form noValidate onSubmit={handleSubmit} &gt;
              &lt;Autocomplete
                  id="combo-box-demo"
                  options={[{id:1,name:"test"},{id:2, name:"test2"}]}
                  getOptionLabel={(option) =&gt; option.name}
                  style={{ width: 300 }}
                  renderInput={(params) =&gt; &lt;TextField {...params} label="Combo box" variant="outlined" /&gt;}
              /&gt;
  </code></pre>
  
  <p>and when i try to submit the form i get the following error: </p>
  
  <p>Material-UI: The value provided to Autocomplete is invalid.
  None of the options match with <code>{"id":1,"name":"test"}</code>.
  You can use the <code>getOptionSelected</code> prop to customize the equality test. </p>
  
  <p>I also realize that if i set the options in the state of the component there is no warning (just when they are set like a constant). So i wonder if some of you have any idea of this behavior? thank you so much in advance.</p>