isSuccess value turning true while status: "pending"
Jeekwar opened this issue · 2 comments
Jeekwar commented
Why isSucces turning into true while status "pending"
I try to fetching a query using RTK method POST and I console the response like below:
useEffect(() => { console.log(responseCheckPromoCode.isError, responseCheckPromoCode.isSuccess, responseCheckPromoCode.status); } ,[responseCheckPromoCode]
after running the project responseCheckPromoCode rendered 3 times like below:
any answer and suggestions would be appreciated, Thanks.