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

Feedback #531

Open
PodkopovP opened this issue Jul 18, 2024 · 1 comment
Open

Feedback #531

PodkopovP opened this issue Jul 18, 2024 · 1 comment

Comments

@PodkopovP
Copy link

Is there any way to change the puck data state including zones?

I have a one page app that allows for multiple pages, but it seems the only way I can consistently set the puck data is by rendering or something along those lines - which causes my entire app to refresh, whereas I just want the data used to change?

I've tried using a hook within Puck that reads the page uuid, and based on that dispatches a 'setData' action that sets the content/root, but it looks like zones don't get registered properly, causing the app to crash - I've also tried using 'registerZone' but there's no way to add zone props along with the key.

@chrisvxd
Copy link
Member

Hi @PodkopovP would you be able to provide a code sandbox that shows what you're trying to achieve?

I suspect there are likely solutions to your problem, but it's not clear to me yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants