You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a metadata API to enable the user to inject their own data down the Puck tree. This can provide a viable alternative to state management solutions, and should work for server components.
Add a metadata API to enable the user to inject their own data down the Puck tree. This can provide a viable alternative to state management solutions, and should work for server components.
Proposal
Proposal 1
Add a
metadata
prop to the Puck component:Pass into components via the `puck.metadata prop:
Proposal 2
Add a
mapMetadata
function to component config, with the result passed to all childrenThen, in a child component
Considerations
The text was updated successfully, but these errors were encountered: