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

Feat/next 13 #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Feat/next 13 #20

wants to merge 2 commits into from

Conversation

Osirisxxl
Copy link

This PR updates next to its last version which move the App router out of experimental features.
It is now the recommended routing and I moved around files to match this new routing implementation.

This App router brings server components support which is very useful for us to cache the html markup generated when rendering the talks. This way, the user won't have to wait the google sheet call at each refresh. It was about a second long and led to a page interactive in about 3 seconds.

The downside is that we always present cached values to the user. This cache is invalidated on next request after 10 secs though. As long as we have enough users, one will see an update lag of about 10secs. Realistically with an app usage pretty low, the user will lag behind multiple hours.

If one searches for a specific talk, they might think about refreshing 🤞. If they are just here browsing content, they'll possibly miss the latest content (it's a shame but I think it's ok though).

Jérémie Picard added 2 commits September 6, 2023 15:08
Use next 13 app router feature to enable React Server Components. This allows to render and cache components on the server even if they are children of components rendered client side.
Copy link
Contributor

@gouz gouz left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants