I think you should wrap SearchResults component using observer
const SearchResults =observer(() => {
useEffect( () => {
GlobalStore.setOptions();
}, []);
return(
<div className={styles.column}>
{
GlobalStore.getOptions.result=='OK' &&
<OptionWrapper options={ GlobalStore.options.data.body} />
}
</div>
)})
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…