Skip to content

Commit

Permalink
fix: ensure root render receives props from latest data API
Browse files Browse the repository at this point in the history
If the user has migrated to the new data API in
[v0.11.0](https://github.com/measuredco/puck/releases/tag/v0.11.0),
their root render method would not have received the props (although
still accessible via the `state` prop).
  • Loading branch information
chrisvxd authored Nov 20, 2023
1 parent 889b4c7 commit abb6ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/components/Puck/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export function Puck({
<Page
dispatch={dispatch}
state={appState}
{...data.root}
{...rootProps}
>
<DropZone zone={rootDroppableId} />
</Page>
Expand Down

0 comments on commit abb6ff1

Please sign in to comment.