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: preload flight data #373

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

feat: preload flight data #373

wants to merge 2 commits into from

Conversation

hi-ogawa
Copy link
Owner

@hi-ogawa hi-ogawa commented Jun 8, 2024

Starting with a simple <link> based preloading without any client logic. This would be similar to Remix (react-router)'s prefetch https://github.com/remix-run/remix/blob/8a997a62d3e86eced31d4dbf5eddff0b85065e4e/packages/remix-react/components.tsx#L449-L455

As I removed ?__rsc query encoding, preload is fetching a full flight data, so it's probably mostly intended for prerendered page.
(TODO: probably, I should restore ?__rsc hashing. if we can preload prerendered page, then it wouldn't be so bad to have slightly higher cache miss at cdn level. Or if we have "prerender manaifest" on client, then it can strip parameter as needed.)

todo

  • test

@hi-ogawa
Copy link
Owner Author

hi-ogawa commented Jun 8, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hi-ogawa and the rest of your teammates on Graphite Graphite

@hi-ogawa hi-ogawa marked this pull request as ready for review June 8, 2024 09:25
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.

1 participant