-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Data loader #14179
Data loader #14179
Conversation
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
src/components/BigNumber/index.tsx
Outdated
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.
Changes for testing purposes. This will show the full date and time and will help us to check that the data has been updated.
src/pages/index.tsx
Outdated
|
||
type Props = BasePageProps & { | ||
metricResults: AllMetricData | ||
rssData: { rssItems: RSSItem[]; blogLinks: CommunityBlog[] } | ||
} | ||
|
||
// In seconds | ||
const REVALIDATE_TIME = 60 |
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.
Revert once we finish testing.
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.
🎉🎉 Overall seems to be working, but sometimes seems to take one or two refreshes more than I would expect, but it eventually updates. I'd be down to pull this in (after reverting the testing commits) and give it a try in staging then prod
Co-authored-by: Paul Wackerow <[email protected]>
Marked as "Blocked" until reviewed, approved, and test commits reverted. |
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.
LGTM, seems to be working well in the preview deploy
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.
Reverted the test commits; bringing in
Description
Creates a data loader function to handle data caching, error handling and mock data.
Important: the last two commits are for testing purposes. They need to be removed once we get an approval.
Testing params: current build is only building
en
and the home page has a revalidate time of 60 seconds.TODO