Skip to content

Mutation get stuck in pending state #4447

Open
@LucasHimelfarb

Description

@LucasHimelfarb

In my React Native application, I implement React Navigation and have two stack navigators... After replacing one with the other, a screen is rendered that will make two requests using RTK Query. The first is a simple query to obtain some authorization tokens, which resolves without any issues. The second is a mutation that implements a queryFn...

Screenshot 2024-06-06 at 2 17 26 PM

and those queries called in my screen:

Screenshot 2024-06-06 at 2 19 10 PM

But the getCredits mutation never resolve with success even if the requests defined in queryFn was resolved, the data value is unfilled in the screen side and the flag isLoading is always true.

All works fine when the replace of stack navigators never happens

Metadata

Metadata

Assignees

No one assigned

    Labels

    RTK-QueryReact-NativeIndicates an issue specific to the React Native environment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions