Wire Lifecycle
Everything that has a beginning has an end. - The Oracle, Matrix
Last updated
Was this helpful?
Everything that has a beginning has an end. - The Oracle, Matrix
Last updated
Was this helpful?
When a is initially loaded (before any background AJAX requests are performed), the Lifecycle Methods are executed in the following order.
onMount()
Render
onRender() or implicit rendering
For background AJAX requests, lifecycle methods are executed in this order.
onHydrate[DataProperty]()
onHydrate()
Render
Execute
onRender() or implicit rendering
Runs only once when the Wire is initially wired.
This does not fire during subsequent renderings for the Wire.
onMount() replaces what was formerly mount(). The mount() method is deprecated and will be removed in future major releases of CBWIRE.
Runs on subsequent requests, after the Wire is hydrated, but before are rendered, before an is performed, or before onRender() is called.
Runs on subsequent requests, after a specific is hydrated, but before are rendered, before an is performed, or before onRender() is called.
Runs during the rendering of a . If onRender() is defined on the Wire, CBWIRE will use what is returned as the component's template, otherwise it will perform a lookup for a view template. The args
parameter is provided which contains both the and any rendered .