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: only call project overview from connect dialog when open #8977

Conversation

thomasheartman
Copy link
Contributor

Fixes a bug where we'd call the project overview every second when on a project page.

The reason this happens is that the connect SDK dialog sets up a fetcher to re-fetch it every second.

The request should only be fired when the dialog is open, but because of the way it's set up, we we're setting up the repeated fetch regardless of whether the dialog was open or not.

This PR moves the dialog and all it's content into a nested component that's only rendered if the dialog should be opened.

Copy link

vercel bot commented Dec 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 13, 2024 8:26am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Dec 13, 2024 8:26am

Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@thomasheartman thomasheartman merged commit 428b0b3 into main Dec 13, 2024
11 of 13 checks passed
@thomasheartman thomasheartman deleted the fix(1-3197)/don't-call-from-connect-sdk-dialog-when-it's-not-open branch December 13, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants