Skip to content

[Fix-4574][web] Prevent repeated project tree refresh - #4575

Open
gordan-zhang wants to merge 1 commit into
DataLinkDC:devfrom
gordan-zhang:Fix-4574
Open

[Fix-4574][web] Prevent repeated project tree refresh#4575
gordan-zhang wants to merge 1 commit into
DataLinkDC:devfrom
gordan-zhang:Fix-4574

Conversation

@gordan-zhang

Copy link
Copy Markdown

Purpose of the pull request

Prevent the Data Studio project tree from entering a repeated refresh loop after the toolbar refresh button is clicked.

Closes #4574.

Brief change log

  • Clear the one-shot PROJECT_REFRESH action immediately after dispatching the catalogue tree refresh.
  • Prevent refreshed data from retriggering the same action and requesting getCatalogueTreeData indefinitely.

Verify this pull request

This change is not covered by automated UI tests and was verified as follows:

  • prettier --check src/pages/DataStudio/Toolbar/Project/index.tsx
  • git diff --check
  • Confirmed the refreshed data can no longer re-enter the PROJECT_REFRESH branch because the action is cleared.

The repository-wide TypeScript check currently reports pre-existing dependency and generated-module errors after a lockfile-free install; no new error is associated with this change.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [web] Project tree refresh triggers repeated requests and flickering

1 participant