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

refactor: handle case where preview state updates before data #796

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

chrisvxd
Copy link
Member

When dropping in a new component, the "No configuration for preview" would appear momentarily, before the component is rendered. This is due to a race condition introduced in #767, as the preview is kept in Zustand, which triggers a render before the data updates (which kept in context).

Might be able to refactor this once all state moves to zustand as part of #644.

Might be able to refactor this once all state moves to zustand.
Copy link

vercel bot commented Jan 13, 2025

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

Name Status Preview Comments Updated (UTC)
puck-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 7:10pm
puck-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 7:10pm

@chrisvxd chrisvxd merged commit 01d9695 into main Jan 13, 2025
4 checks passed
@chrisvxd chrisvxd deleted the prevent-no-config-warning branch January 13, 2025 19: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.

1 participant