Skip to content

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

Closed as not planned
Closed as not planned

Description

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions