LWC – Constructor and Wire Adapter Usage

constructorlightning-experiencelightning-web-componentslwc-domlwc-wire-adapter

Already wire adapter was there in LWC i.e. @wire annotation to display the records,so can we do the same thing (display the records) through LWC constructor also?
If yes, then why @wire feature was introduced in LWC??

Best Answer

You can't call out to the server in the constructor() or connectedCallback() synchronously. They will be delayed, as asynchronous calls, until at least the first renderedCallback() cycle. As such, @wire methods provide the same results with less code (potentially just one line of code).