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

[Bug]: isLoading Not Working with Query Modules/Packages #36883

Open
1 task done
ame-appsmith opened this issue Oct 15, 2024 · 3 comments
Open
1 task done

[Bug]: isLoading Not Working with Query Modules/Packages #36883

ame-appsmith opened this issue Oct 15, 2024 · 3 comments
Assignees
Labels
Bug Something isn't working Community Reported issues reported by community members Medium Issues that frustrate users due to poor UX Needs Triaging Needs attention from maintainers to triage Packages Pod issues that belong to the packages pod Packages Product Issues related to packages Production

Comments

@ame-appsmith
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

The isLoading property is only working for regular queries, but not for query modules created within packages and used in apps.

Steps To Reproduce

  1. Create a new Package with a Query Module and publish it.
  2. Use the query module in an app and try to use the isLoading property which should indicate if it is loading or not.
  3. Note that the property does not change to true while the query is loading.

Public Sample App

No response

Environment

Production

Severity

Medium (Frustrating UX)

Issue video log

https://www.loom.com/share/8e00544c260e4c5db8a8194164dd13d7?sid=714b2a75-858e-4b76-875b-0c78de9ed6dc

Version

v1.43

@ame-appsmith ame-appsmith added Bug Something isn't working Needs Triaging Needs attention from maintainers to triage Packages Product Issues related to packages labels Oct 15, 2024
@Nikhil-Nandagopal Nikhil-Nandagopal added Community Reported issues reported by community members Medium Issues that frustrate users due to poor UX Production labels Oct 15, 2024
@github-actions github-actions bot added the Packages Pod issues that belong to the packages pod label Oct 15, 2024
@sonali-humanedge
Copy link

What is the plan for resolving this bug?

@ashit-rath
Copy link
Contributor

Hello @sonali-humanedge, we need to triage this bug to understand the effort required to fix this. Based on the analysis we will prioritise this issue and we will let you now when can you expect a fix to be available. We can get back to you by next week.

Can you share your use case for using isLoading? so that I can help providing an alternative while we come up with fix

@sonali-humanedge
Copy link

@ashit-rath currently I have a query that is run on page load. If the query is loading I want to disable a button. I have tried with the logic of Boolean(query.data), but this incorrectly keeps the button disabled even when the loading is complete but the query has no response.
The said query is a Mongo db query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Community Reported issues reported by community members Medium Issues that frustrate users due to poor UX Needs Triaging Needs attention from maintainers to triage Packages Pod issues that belong to the packages pod Packages Product Issues related to packages Production
Projects
None yet
Development

No branches or pull requests

7 participants