Skip to content
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

Make use of partial prerendering to render /blog and /blog/:slug #83

Closed
mwskwong opened this issue Oct 24, 2023 · 1 comment
Closed
Assignees
Labels
enhancement New feature or request priority: low

Comments

@mwskwong
Copy link
Owner

mwskwong commented Oct 24, 2023

Current

/blog and /blog/:slug are ISRed (revalidate for every hour). This is mostly for the sake of updating the view count periodically since the rest of the content is static.

To be explore

Partially render the two pages while wrapping the view count in Suspense, leaving it SSRed. This can potentially re-introduce like count, which is previously removed due to de-synchronized count between /blog and /blog/:slug.

unstable_noStore() may be helpful in this case since the counts are retrived using fetch internally.

Reference

@mwskwong
Copy link
Owner Author

Potential blockers

  1. Emotion is unable to pre-render styles when a page contains dynamic content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant