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

feat(docgen-sidebar): add polling to tags loading in dogen sidebar #3858

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

rustam-e
Copy link
Contributor

before:
if the template has been updated and tags have not been processed - user would see error state requesting them to click a refresh button

after:
components tries re-fetching up to 10 times and only then shows the error state

@rustam-e rustam-e requested review from a team as code owners January 21, 2025 14:39
abdel-ships-it
abdel-ships-it previously approved these changes Jan 27, 2025
Copy link

@abdel-ships-it abdel-ships-it left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@abdel-ships-it abdel-ships-it left a comment

Choose a reason for hiding this comment

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

LGTM

setHasError(false);
} else {
const loadTags = useCallback(
async (attempts = 10) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we chose to go with 10 attempts? I feel like most of the time we do 3 - 5 attempts for retries.

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.

5 participants