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 disabling request isolation #153

Open grantcopley opened 4 months ago

grantcopley commented 4 months ago

Disabling Request Isolation By default, CBWIRE handles each lazy-loaded component request separately. However, if you want to bundle all updates into a single network request, disable the isolation behavior using lazyIsolate=false:

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

Now, if multiple UserActivity components are on the same page, their updates will be grouped into a single network request when the page loads.