We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using the RSC render, renderDropZone is not defined. Source.
renderDropZone
import { type Config } from "@measured/puck"; type Props = { HeadingBlock: { title: string }; Test: { title: string }; }; export const config: Config<Props> = { components: { HeadingBlock: { fields: { title: { type: "text" }, }, defaultProps: { title: "Heading", }, render: ({ title }) => ( <div style={{ padding: 64 }}> <h1>{title}</h1> </div> ), }, Test: { fields: { title: { type: "text" }, }, defaultProps: { title: "Heading", }, render: ({ puck: { renderDropZone } }) => { return <div>{renderDropZone({ zone: "test" })}</div>; }, }, }, }; export default config;
## What happened
A type error occurs:
TypeError: renderDropZone is not a function
And then hydration errors occur
No errors to occur
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using the RSC render,
renderDropZone
is not defined. Source.Steps to reproduce
## What happened
A type error occurs:
And then hydration errors occur
What I expected to happen
No errors to occur
The text was updated successfully, but these errors were encountered: