coldbox-modules / cbwire

CBWIRE is a ColdBox module that makes building reactive, modern apps easy using HTML-over-the-wire technologies and CFML.
https://cbwire.ortusbooks.com
Other
28 stars 5 forks source link

Implement always lazy loading #152

Open grantcopley opened 4 months ago

grantcopley commented 4 months ago

Always Lazy Loading To enforce that a CBWIRE component is always lazy-loaded, you can add lazy=true to the component class:

// ./wires/UserActivity.cfc
component extends="cbwire.models.Component" {
    lazy = true;
    // Other component methods...
}

If you want to override this default lazy-loading behavior, set the lazy parameter to false:

#wire( name="UserActivity", lazy=false )#