State Management · Junior · Question 65 of 75

Which hooks does RTK Query generate for getPosts (query) and addPost (mutation) endpoints?

Explanation

Mutation hooks return a tuple: a trigger function and a result object ([addPost, { isLoading }] = useAddPostMutation()).

Further reading

Problem with a question

State Management · Junior · question 65

Test yourself

Take the State Management · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz