lets assume we have a API with a query params which keeps changing as a timestamp
https://example.com/api/example?timestamp=1684522021000
once using RTK hook
const timestamp = dayjs().unix() * 1000;
const query = useFetchDataQuery(
`example.com/api/example?${timestamp}`,
);
if API get failed its keeps calling api until app crash
I tried using retry soultion , skip soulution but every time RTK consider it as a new API
thanks in advanced
2
Answers
you can use skip to jump those cases