Hello how to wait for use context change but i create
Component child:
const [weatherInfo, setWeatherInfo] = useState(useContext(WeatherContext))
and it return started useContext update, i update him 5seconds from fetch after starting but its not change in component child
Don't use useState to store the context data if you want to be aware of changes:
const setWeatherInfo = useContext(WeatherContext)