@symfony/ux-live-component 2.35.0 → 2.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/live_controller.js +5 -3
- package/package.json +1 -1
package/dist/live_controller.js
CHANGED
|
@@ -1494,9 +1494,11 @@ var Component = class {
|
|
|
1494
1494
|
this.unsyncedInputsTracker.resetUnsyncedFields();
|
|
1495
1495
|
const filesToSend = {};
|
|
1496
1496
|
for (const [key, value] of Object.entries(this.pendingFiles)) if (value.files) filesToSend[key] = value.files;
|
|
1497
|
+
const actionsToSend = this.pendingActions.slice(0, 50);
|
|
1498
|
+
const remainingActions = this.pendingActions.slice(50);
|
|
1497
1499
|
const requestConfig = {
|
|
1498
1500
|
props: this.valueStore.getOriginalProps(),
|
|
1499
|
-
actions:
|
|
1501
|
+
actions: actionsToSend,
|
|
1500
1502
|
updated: this.valueStore.getDirtyProps(),
|
|
1501
1503
|
children: {},
|
|
1502
1504
|
updatedPropsFromParent: this.valueStore.getUpdatedPropsFromParent(),
|
|
@@ -1505,9 +1507,9 @@ var Component = class {
|
|
|
1505
1507
|
this.hooks.triggerHook("request:started", requestConfig);
|
|
1506
1508
|
this.backendRequest = this.backend.makeRequest(requestConfig.props, requestConfig.actions, requestConfig.updated, requestConfig.children, requestConfig.updatedPropsFromParent, requestConfig.files);
|
|
1507
1509
|
this.hooks.triggerHook("loading.state:started", this.element, this.backendRequest);
|
|
1508
|
-
this.pendingActions =
|
|
1510
|
+
this.pendingActions = remainingActions;
|
|
1509
1511
|
this.valueStore.flushDirtyPropsToPending();
|
|
1510
|
-
this.isRequestPending =
|
|
1512
|
+
this.isRequestPending = remainingActions.length > 0;
|
|
1511
1513
|
this.backendRequest.promise.then(async (response) => {
|
|
1512
1514
|
const backendResponse = new BackendResponse_default(response);
|
|
1513
1515
|
const html = await backendResponse.getBody();
|
package/package.json
CHANGED