Skip to content

fix: Disable social profile request retries #5703

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wise-birds-rest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---

Dont retry social profile requests
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
return useQuery({
queryKey: ["social-profiles", address],
enabled: !!address,
retry: 3,
retry: false,

Check warning on line 32 in packages/thirdweb/src/react/core/social/useSocialProfiles.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/react/core/social/useSocialProfiles.ts#L32

Added line #L32 was not covered by tests
queryFn: async () => {
if (!address) {
throw new Error(
Expand Down
Loading