vercel / next-react-server-components

Demo repository for Next.js + React Server Components
https://next-rsc-hn.vercel.app
MIT License
984 stars 158 forks source link

Use an intentional loading sequence #67

Closed gaearon closed 1 year ago

gaearon commented 1 year ago

This makes the demo feel more aligned with the UX expected from HN:

With these changes combined, I believe it works much closer to what people expect an HN demo to behave.

Before:

https://user-images.githubusercontent.com/810438/235231100-6213bd8e-80e5-4c46-8020-29c73c0e9130.mov

After:

https://user-images.githubusercontent.com/810438/235230868-c4c5f94d-6089-4dbd-ad11-d7f226b5ac91.mov

If we want to introduce the shell for the front page I think we can do that, but we need to be a lot more careful about how it behaves. I suggest that it shouldn't show up on pagination (that feels disruptive), and it should definitely not show up for the story page.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
next-rsc-news ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 3, 2023 6:24pm
gaearon commented 1 year ago

Issues I'm seeing in production:

gaearon commented 1 year ago

I tried to make comments a route group, hoping that this would make the "instant loading UI" prefetch the story above the fold. But prefetching doesn't seem to do what I want. Also, there's a build failure but I don't know what it is because it seems like CI is private.