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

fix(router): retrieve initial server page load from transfer state #1396

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

brandonroberts
Copy link
Member

PR Checklist

Closes #1383

What is the new behavior?

When prerendering pages that use server-side data fetching, get the initial request from the transfer state to prevent data fetching on the initial page load.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

[optional] What gif best describes this PR or how it makes you feel?

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit a832f72
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/6707ee7cb0411100087d6bed
😎 Deploy Preview https://deploy-preview-1396--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit a832f72
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/6707ee7c29bc20000848a12c
😎 Deploy Preview https://deploy-preview-1396--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for analog-ng-app ready!

Name Link
🔨 Latest commit a832f72
🔍 Latest deploy log https://app.netlify.com/sites/analog-ng-app/deploys/6707ee7c23f9490008aaee30
😎 Deploy Preview https://deploy-preview-1396--analog-ng-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 10, 2024

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit a832f72
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/6707ee7c5ade4a0008983e19
😎 Deploy Preview https://deploy-preview-1396--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@brandonroberts brandonroberts merged commit f9f1d9b into beta Oct 10, 2024
24 checks passed
@brandonroberts brandonroberts deleted the fix-server-load-transfer branch October 10, 2024 17:33
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.

SSR load executed twice: once on server, once on client after build
1 participant