Skip to content

React Native[Testing]: Queries are stuck in loading #3691

Closed as not planned
Closed as not planned
@tarikfp

Description

@tarikfp

Describe the bug

Hey!👋 I wanted to implement offline support to my current react-native app, thus upgraded react-query to ^4.0.0-beta.14.
However, I've noticed that useQuery hooks are not returning any data when testing, they are stuck in loading state...

When I downgrade the react-query back to 3.39.1 everything works as expected again!

Your minimal, reproducible example

reproducible example

Steps to reproduce

Expected behavior

useQuery hook should stuck in loading state when testing in ^4.0.0-beta.14

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • React Native

react-query version

^4.0.0-beta.14

TypeScript version

^4.0.5

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions