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

Create shorthand isRefetching for QueryResults #1482

Open
evandrmb opened this issue Feb 25, 2025 · 0 comments
Open

Create shorthand isRefetching for QueryResults #1482

evandrmb opened this issue Feb 25, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@evandrmb
Copy link

evandrmb commented Feb 25, 2025

Is your feature request related to a problem? Please describe.
Currently, the following functions fetchMore, fetch and refetch trigger the isLoading variable, and user's need to validate whether there's data or not. Sometimes we need the screen to behave differently from each case, so a shorthand like isRefetching would be handy.

Describe the solution you'd like
Add isRefetching param to QueryResult

Additional context
I believe there's much influence from react-query in this package therefore would be a good idea since they separate each behavior in multiple variables (isFetching, isRefetching...). That also shouldn't be a breaking change as it's only a shorthand for validation users already do.

@evandrmb evandrmb added the enhancement New feature or request label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant