API to fetch details by ID
The details of a chosen result item disappears on page reload. For efficient functioning its best to use an API that fetches the required details from the backend to be shown in the detailsCard. This API could also be useful in other aspects of development later
Edited by Fiona D'Mello