Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement always lazy loading #152

Open
grantcopley opened this issue May 16, 2024 · 0 comments
Open

Implement always lazy loading #152

grantcopley opened this issue May 16, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@grantcopley
Copy link
Collaborator

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 )#
@grantcopley grantcopley added this to the v4.1 milestone May 16, 2024
@grantcopley grantcopley added the enhancement New feature or request label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant