I have a lwc that references {recordName} in the html. Going to the JavaScript I have a @wire getRecord call to retrieve a record and its name, the record being set to a variable.
I also have a get recordName() method that returns the name value from the record variable. It doesn’t set anything.
The record name in the html is populated fine and everything works with the above conditions. However, when I have a variable called recordName at the top in my JS, the recordName doesn’t get populated anymore.
Is this because properties/variables hold precedence over getters? And because the recordName variable isn’t set anywhere, it’s empty? Even if I have a getter that returns a value for recordName.