Activity Forums Salesforce® Discussions How do I fix 'cannot assign to read-only property error' in LWC?

  • Anjali

    Member
    December 30, 2020 at 10:29 am

    Fix Cannot Assign To Read Only Property Error In LWC In Lightning web components. If we are trying to update public (@api) property or wired property in JavaScript function we usually get this issue. For resolving this issue, we need to clone that property to new variable and update it.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos