Skip to content

fix: refresh stale multiaddrs on the Status page #2385

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

Merged
merged 2 commits into from
Jul 21, 2025

Conversation

lidel
Copy link
Member

@lidel lidel commented Jul 15, 2025

This PR closes #1964 and ensures addresses added by AutoTLS/RelayV2 are updated and visible in WebUI correctly:

  • one-time update when Status Page is opened
  • update addresses every 5s if addrs section is expanded

This way we call /ipfs/v0/id every 5s only when UI actually needs it (green is when "Advanced" section with multiaddrs was expanded):

2025-07-15_21-33

- one-time update when Status Page is opened
- update addresses every 5s  if addrs section is expanded
@lidel lidel requested a review from 2color July 15, 2025 19:38
@lidel lidel requested a review from a team as a code owner July 15, 2025 19:38
@lidel lidel mentioned this pull request Jul 15, 2025
37 tasks
}) => {
// Refresh identity when page mounts
Copy link
Member

Choose a reason for hiding this comment

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

I'm not too familiar with how the deps of this effect ipfsConnected and doFetchIdentity get updated, but this will refresh on more than just page mounts.

Copy link
Member Author

Choose a reason for hiding this comment

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

ipfsConected is likely the special state where RPC was offline and then got back online.
i eyeballed requests and we don't seem to do any unnecessary requests to /api/v0/id, so should be fine to merge as-is

Copy link
Member

@2color 2color left a comment

Choose a reason for hiding this comment

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

Seems reasonable.

@lidel lidel merged commit 6c361c4 into main Jul 21, 2025
21 checks passed
@lidel lidel deleted the fix-refresh-id-on-status-page branch July 21, 2025 21:56
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.

Status page doesn't refresh to display new multiaddresses
2 participants