React-Query Fetches stale queries with expired access token – Reactjs
We are using react-query to fetch data from an API. For every api call there is a seperate hook with different query key but all of them are using same function callApi() which takes the api url as parameter to…