Skip to content

Added SSR prefetching on event homepage - #465

Open
sakiyamadev wants to merge 1 commit into
devfrom
shun/SSR-event-dashboard
Open

sakiyamadev wants to merge 1 commit into
devfrom
shun/SSR-event-dashboard

Conversation

@sakiyamadev

@sakiyamadev sakiyamadev commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Describe your changes

The homepage would show checking status for a few seconds whenever the page reloads/initial load. Thus, now the client side pre-fetches the data so on load, the actual status will show immediately.

Issue ticket number and link

UBC-46
https://linear.app/ubc-biztech/issue/UBC-46/add-ssr-for-event-homepage-specifically-event-registration-widget

Checklist before requesting a review

  • I have performed a self-review of my code

Images / Video of Feature

@sakiyamadev
sakiyamadev requested a review from elijahzhao24 July 24, 2026 07:48
@sakiyamadev sakiyamadev self-assigned this Jul 24, 2026
@sakiyamadev sakiyamadev added bug Something isn't working bt-web-v2 BizTech Web V2 labels Jul 24, 2026
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
biztech-v2 Ready Ready Preview, Comment Jul 24, 2026 8:20am

@elijahzhao24 elijahzhao24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This feels more complex than the ticket requires. The goal is only to prevent the event and registration status from flickering on initial load.

Could we simplify this by fetching the event, current user, and matching registration in getServerSideProps, then passing event, counts, signedIn, and registration directly to EventHomePage props?

Side note:
it seems to be a bit slow on the performance side cause i think you are sequentially fetching event, user, and registrations data. (when it can be fetched at the same time).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bt-web-v2 BizTech Web V2 bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants