-
Notifications
You must be signed in to change notification settings - Fork 452
fix(clerk-js): Correct init retry logic #7128
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
Open
jacekradko
wants to merge
24
commits into
main
Choose a base branch
from
fix/init-retry-logic
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 5 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
aec61e8
fix: init retry logic
jacekradko 0d7919b
Merge branch 'main' into fix/init-retry-logic
jacekradko 8e58d10
Merge branch 'main' into fix/init-retry-logic
jacekradko 00c834d
wip
jacekradko dbf02e9
guard against invalid maxAttempts
jacekradko b15a32c
guard against mounting components with missing env
jacekradko b55bf67
changeset
jacekradko 2a0e348
Merge branch 'main' into fix/init-retry-logic
jacekradko e6b28f3
Merge branch 'main' into fix/init-retry-logic
jacekradko 95e6d64
wip
jacekradko b739aab
Merge branch 'main' into fix/init-retry-logic
jacekradko 2239274
wip
jacekradko f2bf4a9
wip
jacekradko ee40019
Merge branch 'main' into fix/init-retry-logic
jacekradko b523532
Merge branch 'main' into fix/init-retry-logic
jacekradko 17bcea8
Merge branch 'main' into fix/init-retry-logic
jacekradko c742214
wip
jacekradko 00b626a
wip
jacekradko 2db92aa
Merge branch 'main' into fix/init-retry-logic
jacekradko 645142b
Merge branch 'main' into fix/init-retry-logic
jacekradko 5529cf3
fix(clerk-js): refactor init retry logic with exponential backoff
jacekradko 11b4913
merge main into fix/init-retry-logic
jacekradko b6f68e2
fix: use correct #clerkUI casing after merge
jacekradko 95c4f2f
Merge branch 'main' into fix/init-retry-logic
jacekradko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Preserve original error when throwing after failed environment fetch.
When the environment fetch fails and no cache exists, line 2745 creates a new
ClerkRuntimeErrorwithout preserving the original error as the cause. This loses valuable debugging context about what actually failed.Apply this diff to preserve the original error:
📝 Committable suggestion
🤖 Prompt for AI Agents