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: make root and content optional in data, easing initalisation #135

Closed
wants to merge 1 commit into from

Conversation

chrisvxd
Copy link
Member

@chrisvxd chrisvxd commented Oct 6, 2023

Follow on from #80, this makes root and content optional in the Data shape, making it simpler to instantiate Puck.

This was the original intention. Could also mark this as a fix. Could probably go either way.

Before

<Puck data={{ root: {}, content: [] }} config={config} />

Now

<Puck data={{}} config={config} />

CC @philipodev

@vercel
Copy link

vercel bot commented Oct 6, 2023

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 Oct 6, 2023 3:07pm

@chrisvxd
Copy link
Member Author

chrisvxd commented Nov 3, 2023

Closing as significantly out of date and needs reworking.

@chrisvxd chrisvxd closed this Nov 3, 2023
@chrisvxd chrisvxd deleted the make-root-and-content-optional branch November 3, 2023 12:00
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