tldr; How to mix two or more createApi endpoints results ?
So I'm using createApi
from reduxToolkit and the problem I have quite simple but I'm kinda lost in this huge documentation of this beautiful tool.
The idea is that I have a view that will mix data coming from two different api endpoints , for example:
/users /cars
That view will display an array mixing both results (for example the cars images are only in /cars).
A little bit like transformResponse
but for 2 endpoints
What is the right way to do this mixing ? (doing that in the view doesn't seems the best and I don't want to that backend neither).
You may tell me use a reducer, but where a reducer/slice takes places in the createApi pattern ? that's what I don't get.