Search box doesn't work on pagination in react

i am trying to search data on other pages instead on page 1 but search query does not work what should i do to search data fetch from all pagination

I think we will need more context to help you with this.