hunk.code_window:     options={Array []}
     >
       <Creatable
         allowCreateWhileLoading={false}
         cacheOptions={false}
         createOptionLabelFirst={false}
         defaultInputValue=""
         defaultMenuIsOpen={false}
         defaultOptions={false}
         defaultValue={null}
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:       createOptionPosition="last"
  
hunk.file_path: src/__tests__/__snapshots__/AsyncCreatable.test.js.snap
hunk.type: replace
file: import React, { Component } from 'react';
  
  import AsyncCreatableSelect from '../../src/AsyncCreatable';
  import { colourOptions } from '../data';
  
  const filterColors = (inputValue: string) =>
    colourOptions.filter(i =>
      i.label.toLowerCase().includes(inputValue.toLowerCase())
    );
  
  const promiseOptions = inputValue =>
    new Promise(resolve => {
      setTimeout(() => {
        resolve(filterColors(inputValue));
      }, 1000);
    });
  
  export default class WithPromises extends Component<*, State> {
    render() {
      return (
        <AsyncCreatableSelect
          cacheOptions
          defaultOptions
          loadOptions={promiseOptions}
        />
      );
    }
  }
  