Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isSuccess value turning true while status: "pending" #4397

Open
Jeekwar opened this issue May 7, 2024 · 2 comments
Open

isSuccess value turning true while status: "pending" #4397

Jeekwar opened this issue May 7, 2024 · 2 comments

Comments

@Jeekwar
Copy link

Jeekwar commented May 7, 2024

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:

image

any answer and suggestions would be appreciated, Thanks.

@Jeekwar Jeekwar changed the title isSucces value turning true while status: "pending" isSuccess value turning true while status: "pending" May 7, 2024
@aryaemami59
Copy link
Contributor

If you provide a minimal repro or a replay I can take a look.

@Jeekwar
Copy link
Author

Jeekwar commented May 13, 2024

If you provide a minimal repro or a replay I can take a look.

i can't give the repo but if you mind maybe i can give the slice of code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants