Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sehqlr

    (@sehqlr)

    For Your Information… I decided to create an issue in the react-select GitHub repository.

    Thread Starter sehqlr

    (@sehqlr)

    I realized that I never included a code sample…

    render() {                                                               
            const multiple = this.props.isMulti;                             
            const handleChange = this.props.onChange;                        
            const { selected } = this.props;                                 
            console.log('PostTypePicker rendering now');                     
            console.log(this);                                               
            return (                                                         
                    <AsyncSelect                                             
                            isMulti={multiple}                               
                            value={this.rehydratePostTypeSelection(selected)}
                            loadOptions={this.loadOptions}                   
                            defaultOptions                                   
                            onChange={handleChange}                          
                    />                                                       
            );                                                               
    }

    The console logs always print, and the rehydratePostTypeSelection function also runs (because I have a few logging statements there too). But something happens when this AsyncSelect component renders and triggers the exception.

    • This reply was modified 4 years, 6 months ago by sehqlr.
Viewing 2 replies - 1 through 2 (of 2 total)