This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ----------- simple-select.js ----------- */ | |
| import * as React from 'react'; | |
| import Select from 'react-select'; | |
| import type { Props } from 'react-select'; | |
| import { defaultClassNames, defaultStyles } from './helper'; | |
| import { | |
| ClearIndicator, | |
| DropdownIndicator, | |
| MultiValueRemove, | |
| Option |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| these are all issues i found in the main code: | |
| 1. all the children in Suspense component must be lazy-loaded | |
| 2. Suspense component should receive a fall-back component | |
| 3. Using useEffect hook in a component along side Suspense cause the race condition. Api call must be moved | |
| in to parent component | |
| */ | |
| import { Suspense, useState, useEffect, lazy } from 'react'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| license: mit |