Skip to content

Improve detecting if API is out-of-date #1876

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
Apr 25, 2025
Merged

Improve detecting if API is out-of-date #1876

merged 2 commits into from
Apr 25, 2025

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Apr 8, 2025

Fixes #882

Copy link

github-actions bot commented Apr 8, 2025

Deployed to Cloudflare Pages

Latest commit: 1ad526a7874ac643c38a7d8ef49ed1c7ddcd01c8
Status:✅ Deploy successful!
Preview URL: https://e13bcc6f.oasis-explorer.pages.dev
Alias: https://pr-1876.oasis-explorer.pages.dev

@lukaw3d lukaw3d force-pushed the lw/out-of-date-more branch from 79e6c95 to c105c17 Compare April 14, 2025 18:58
@@ -24,6 +24,7 @@ export const useIsApiReachable = (
export type FreshnessInfo = {
unavailable?: boolean
outOfDate?: boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like redundancy in having two vars for handling one state. Doesn't outOfDate duplicate outOfDateReason? Would be simpler to have single source of truth for this state checking.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes
That can be a separate refactoring, I think it would require some hundred lines of changes in existing code and I'd rather avoid conflicts

Copy link
Member Author

Choose a reason for hiding this comment

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

Created #1933

@lukaw3d lukaw3d force-pushed the lw/out-of-date-more branch from c105c17 to 1ad526a Compare April 25, 2025 20:11
@lukaw3d lukaw3d merged commit d11c1be into master Apr 25, 2025
9 checks passed
@lukaw3d lukaw3d deleted the lw/out-of-date-more branch April 25, 2025 21:27
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.

Use new /status fields
2 participants