Thank you so much! But what I do not like about your example is that the request to the API is still done twice. I think a Context API approach would be better to share the data with one single request.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.