fix: refresh stale multiaddrs on the Status page - #2385
Merged
Conversation
- one-time update when Status Page is opened - update addresses every 5s if addrs section is expanded
2color
reviewed
Jul 16, 2025
2color
reviewed
Jul 16, 2025
| doFetchIdentity, | ||
| isNodeInfoOpen | ||
| }) => { | ||
| // Refresh identity when page mounts |
Member
There was a problem hiding this comment.
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.
Contributor
Author
There was a problem hiding this comment.
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
ipfs-gui-bot
pushed a commit
that referenced
this pull request
Aug 7, 2025
## [4.8.0](v4.7.0...v4.8.0) (2025-08-07) CID `bafybeifplj2s3yegn7ko7tdnwpoxa4c5uaqnk2ajnw5geqm34slcj6b6mu` --- ### Features * add async provide on share/copy/pin/ipns ([#2387](#2387)) ([cfea7d4](cfea7d4)) ### Bug Fixes * eslint doesnt check build folder ([#2389](#2389)) ([2a6c64a](2a6c64a)) * refresh stale multiaddrs on the Status page ([#2385](#2385)) ([6c361c4](6c361c4)) * stop sending requests to defunct countly ([#2395](#2395)) ([fb9c981](fb9c981)), closes [#2334](#2334) ### Trivial Changes * fix all eslint warnings in root ([#2378](#2378)) ([0e9fe55](0e9fe55)) * Pull transifex translations ([#2364](#2364)) ([424c8a8](424c8a8)) * Pull transifex translations ([#2384](#2384)) ([575da08](575da08)) * Pull transifex translations ([#2386](#2386)) ([9a78d5f](9a78d5f))
Collaborator
|
🎉 This PR is included in version 4.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR closes #1964 and ensures addresses added by AutoTLS/RelayV2 are updated and visible in WebUI correctly:
This way we call
/ipfs/v0/idevery 5s only when UI actually needs it (green is when "Advanced" section with multiaddrs was expanded):