I need data from 2 different APIs, both support pagination.
How can I display the joined data in a table in a performant way?
I need to join on their id
, but one API returns less data than the other, so I cannot simply match 1 by 1. I need to implement a filter.
Is the only way to brute force map data source A to B?
If the data comes from two different APIs and you are making to separate requests you have a number of options. My personal preference is to have
state
in your controller in which youmap
each response byid
and then you can select the additional data by id:Note, there are probably more efficient ways to do this depending on how you're fetching data and what the responses hold, but the concept provided here should do the trick assuming my assumptions are correct based on the information you have provided.