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
importReactfrom'react'exportconstTeamSelector=async({ payload })=>{console.log('SHOULD HAVE A PAYLOAD OBJECT HERE',payload)// undefinedreturn<div>123</div>}
Expected Result: SHOULD HAVE A PAYLOAD OBJECT HERE [payload class data]
Actual Result: SHOULD HAVE A PAYLOAD OBJECT HERE undefined
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
The text was updated successfully, but these errors were encountered: