Closed SerTimBerrners-Lee closed 4 years ago
@SerTimBerrners-Lee related code?
const [eventType, setEventType] = React.useState(null);
<Select data={filterData} selectedOption={eventType} onSelect={setEventType} />
Gives this warning on Expo -
Warning: State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the comp onent body with useEffect().%s,
onSelect={ type => setEventType(type) }
After creating a SELECT list, Expo returns an error State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().%s,