I'm developing a search engine for movies and am using the OMDB API to fetch data. Unfortunately, the API is returning duplicate searches as mentioned here: https://github.com/Omertron/api-omdb/issues/16 and thus my search engine is also returning duplicate results.
I'm using a FlatList to render the movies and using the imdbID as the key. I'm receiving a warning for keys not being unique(which I should as I just mentioned how the results are duplicated)
My question is: Is there a way to have my FlatList not render a duplicate item(using the item key). Does a built in prop or function exist specifically for this problem For each search, I might be able to store the imdbID in an idArray and not render the item if the id exists in the idArray but I reckon that would significantly slow down the search engine as the FlatList can easily contain over 3000 items for any specific search.