What is the proper way to chain queries if the 2nd query requires a parameter that is returned by the 1st?
const { data: posts } = useGetPostsQuery();
array of posts has parameter ‘userId’. How to make queries for each item of posts, to take user’s name by userId, and render posts with usernames?
New contributor
alexius is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.