Skip to content
Source
Sign inSign up
TanStack/query

React Native useMutation isPending prop not working in build #8636

Send to my agent
Closednemanjamitric(GitHub profile, opens in a new tab) opened this issue 2 comments

Describe the bug

Once a build is created, the isPending prop from the useMutation hook stops working. No loading is indicated.

Your minimal, reproducible example

No point, it works in an expo snack

Steps to reproduce

  1. Create an expo app
  2. Add a mutation
  3. Add an ActivityIndicator to indicate the isPending prop being true
  4. Test it in development
  5. Create a build
  6. Test it in a build

Expected behavior

I expect it to work the same for dev and in the build.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • OS: Both iOS and Android

Tanstack Query adapter

None

TanStack Query version

^5.65.1

TypeScript version

^5.3.3

Additional context

No response

  1. I think that this also messed up my file upload mutation progress bar indicator which broke a few weeks ago, if that helps.

  2. Thank you for filing this issue, but we need more information before looking into this.

    Specifically, a minimal, standalone, runnable reproduction is needed - preferably with codesandbox or stackblitz.

    We'll close this issue for now, but we'll certainly re-open it if there is a proper reproduction.

  3. TkDodo closed this

  4. TkDodo added labelsneeds-info

Sign in to join this conversation.