3

Can I access the recordId directly in a LWC child component instead of passing it from parent component?

I put @api recordId in child component but im getting undefined.

1

1 Answer 1

3

No. Child components must receive their recordId from the parent. Only top-level components get the recordId from a Record Page view.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.