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

fix: set refetch on window focus to false for all queries on flow page #3699

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

lucaseduoli
Copy link
Collaborator

This pull request updates all queries to set the refetchOnWindowFocus option to false. This ensures that the queries will not automatically refetch data when the window gains focus, improving performance and reducing unnecessary network requests.

@lucaseduoli lucaseduoli self-assigned this Sep 5, 2024
@lucaseduoli lucaseduoli enabled auto-merge (squash) September 5, 2024 16:00
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 5, 2024
@github-actions github-actions bot added the bug Something isn't working label Sep 5, 2024
@dosubot dosubot bot added the javascript Pull requests that update Javascript code label Sep 5, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-3699.dmtpw4p5recq1.amplifyapp.com

Copy link
Member

@Cristhianzl Cristhianzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 5, 2024
@lucaseduoli lucaseduoli merged commit 414bfe7 into main Sep 5, 2024
35 of 37 checks passed
@lucaseduoli lucaseduoli deleted the fix/query_loading_on_enter_tab branch September 5, 2024 18:03
diogocabral pushed a commit to headlinevc/langflow that referenced this pull request Nov 26, 2024
langflow-ai#3699)

Add refetchOnWindowFocus as false on every query that is run on the flow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants