-
Notifications
You must be signed in to change notification settings - Fork 311
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Trevor <[email protected]>
There was a problem hiding this 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) => { |
There was a problem hiding this comment.
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.
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