State Management · Middle · Question 56 of 75

How do you add RTK Query endpoints from a lazily loaded feature?

Explanation

Injecting keeps one API slice and cache while splitting code by feature. The injected hooks are exported from the returned object.

Further reading

Problem with a question

State Management · Middle · question 56

Test yourself

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

Take this quiz