Skip to content

Commit 598cbc8

Browse files
committed
Clear pendingFiles after being sent
1 parent 0aaa749 commit 598cbc8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/LiveComponent/assets/dist/live_controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1906,6 +1906,7 @@ class Component {
19061906
this.backendRequest = this.backend.makeRequest(this.valueStore.getOriginalProps(), this.pendingActions, this.valueStore.getDirtyProps(), this.getChildrenFingerprints(), this.valueStore.getUpdatedPropsFromParent(), this.pendingFiles);
19071907
this.hooks.triggerHook('loading.state:started', this.element, this.backendRequest);
19081908
this.pendingActions = [];
1909+
this.pendingFiles = {};
19091910
this.valueStore.flushDirtyPropsToPending();
19101911
this.isRequestPending = false;
19111912
this.backendRequest.promise.then(async (response) => {

src/LiveComponent/assets/src/Component/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ export default class Component {
369369
this.hooks.triggerHook('loading.state:started', this.element, this.backendRequest);
370370

371371
this.pendingActions = [];
372+
this.pendingFiles = {};
372373
this.valueStore.flushDirtyPropsToPending();
373374
this.isRequestPending = false;
374375

0 commit comments

Comments
 (0)