Lightning Web Components Communication

Lightning Web Components is the new programming model that Salesforce released early this year. If you don’t know what it is about, check this post I published some time ago.

One of the keys to learn how Lightning Web Components work is to understand how components can communicate between each other. The communication patterns are different from Aura, and are one of the culprits of Lightning Web Components superb performance.

Continue reading “Lightning Web Components Communication”

Understanding Heroku Git deployments

Heroku is a PaaS (Platform as a Service) that allows to build and run web apps, jobs and APIs in 8 languages, while the platform takes care of things like routing, erosion or failures for you. When using Heroku, you can utilize add-ons that will make your life easier, to create and use databases, handle deployments, manage logging etc., among other features, making the tasks of building, deploying and running apps a much pleasant experience.

Continue reading “Understanding Heroku Git deployments”

LWC lifecycle hooks

Same as Aura components, Lightning web components have a lifecycle managed by the framework. The framework is in charge of:

  • In the creation phase, create the components, insert them into the DOM, and finally render them.
  • In the destroy phase, remove them from the DOM.

You can check nice diagrams for both phases here.

During these phases, there are hooks that you can use, either to inject some extra code or to directly override the behaviour:

Continue reading “LWC lifecycle hooks”

Blog at

Up ↑