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

Live preload #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Live preload #71

wants to merge 1 commit into from

Conversation

IvanKiral
Copy link
Contributor

Motivation

Which issue does this fix? Fixes #issue number

If no issue exists, what is the fix or new feature? Were there any reasons to fix/implement things that are not obvious?

Checklist

  • Code follows coding conventions held in this repo
  • Automated tests have been added
  • Tests are passing
  • Docs have been updated (if applicable)
  • Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test

If manual testing is required, what are the steps?

@IvanKiral IvanKiral requested a review from a team as a code owner February 11, 2025 08:39
Copy link

vercel bot commented Feb 11, 2025

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

Name Status Preview Comments Updated (UTC)
ficto-healthtech ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 11:05am
ficto-healthtech-qa ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 11:05am
ficto-imaging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 11:05am
ficto-imaging-qa ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 11:05am
ficto-surgical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 11:05am
ficto-surgical-qa ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 11:05am

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for new-sample-app ready!

Name Link
🔨 Latest commit 3d2449a
🔍 Latest deploy log https://app.netlify.com/sites/new-sample-app/deploys/67add0aeab35ee000837da49
😎 Deploy Preview https://deploy-preview-71--new-sample-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.

const response = await fetch(`/api/homepage`);
const data = await response.json();
useLivePreview(async (data) => {
const updatedHomepage = applyUpdateOnItemAndLoadLinkedItems(homepage, data, async codenamesToFetch => {
Copy link
Member

Choose a reason for hiding this comment

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

It is interesting that this works. I would expect await before applyUpdateOnItemAndLoadLinkedItems. Does this really work properly?

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