@symfony/ux-live-component 2.34.0 → 2.36.0

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.
@@ -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: this.pendingActions,
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 = false;
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
@@ -2,7 +2,7 @@
2
2
  "name": "@symfony/ux-live-component",
3
3
  "description": "Live Component: bring server-side re-rendering & model binding to any element.",
4
4
  "license": "MIT",
5
- "version": "2.34.0",
5
+ "version": "2.36.0",
6
6
  "keywords": [
7
7
  "symfony-ux",
8
8
  "twig",