Closed GamerKingFaiz closed 2 years ago
After searching all previous results are queried again.
This is because it's querying the searchInput state. Setting it to an empty array on search will solve this.
searchInput
After searching all previous results are queried again.
This is because it's querying the
searchInput
state. Setting it to an empty array on search will solve this.