Lifecycle

FBP Lifecycle #

_FBPReady() #

_FBPReady() is called, when the wires are registered and the components are able to receive wire data.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
class MyComponent extends FBP(LitElement) {
  /**
   * flow is ready lifecycle method
   */
  _FBPReady() {
    super._FBPReady()
    this._FBPTraceWires()
  }
}
window.customElements.define('my-component', MyComponent);

The |–FBPready magic wire #

The wire |--FBPready is triggered when your component is ready.

This can be used as a start trigger for your component.