Skip to content

Add flag to always lazy load a component #152

@grantcopley

Description

@grantcopley

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 )#

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions