-
Notifications
You must be signed in to change notification settings - Fork 526
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
Conversation
- one-time update when Status Page is opened - update addresses every 5s if addrs section is expanded
| doFetchIdentity, | ||
| isNodeInfoOpen | ||
| }) => { | ||
| // Refresh identity when page mounts |
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.
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.
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.
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
2color
left a comment
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.
Seems reasonable.
## [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))
|
🎉 This PR is included in version 4.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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):