Open danhstevens opened 2 days ago
Just noting that this has to do with the actions property specifically.
Also affects client components. Using the basic template from the docs here
This is all I have for config:
components: {
views: {
dashboard: {
Component: '@/components/payload/views/Root'
}
}
}
Describe the Bug
According to the documentation (https://payloadcms.com/docs/admin/components#default-props), custom server components are provided with properties such as the
payload
class. However, no properties are passed into server components.Example component:
Expected Result:
SHOULD HAVE A PAYLOAD OBJECT HERE [payload class data]
Actual Result:SHOULD HAVE A PAYLOAD OBJECT HERE undefined
Link to the code that reproduces this issue
https://github.com/danhstevens/payload-issue
Reproduction Steps
payload.config.ts
Which area(s) are affected? (Select all that apply)
area: core
Environment Info