Skip to content

Commit d5fc3c3

Browse files
committed
add missing build files
1 parent 317d390 commit d5fc3c3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default class Component {
5353
emitSelf(name: string, data: any): void;
5454
private performEmit;
5555
private doEmit;
56-
updateFromNewElementFromParentRender(toEl: HTMLElement): void;
56+
updateFromNewElementFromParentRender(toEl: HTMLElement): boolean;
5757
onChildComponentModelUpdate(modelName: string, value: any, childComponent: Component): void;
5858
private isTurboEnabled;
5959
private tryStartingRequest;

src/LiveComponent/assets/dist/live_controller.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,7 @@ class Component {
19121912
updateFromNewElementFromParentRender(toEl) {
19131913
const props = this.elementDriver.getComponentProps(toEl);
19141914
if (props === null) {
1915-
return;
1915+
return false;
19161916
}
19171917
const isChanged = this.valueStore.storeNewPropsFromParent(props);
19181918
const fingerprint = toEl.dataset.liveFingerprintValue;
@@ -1922,6 +1922,7 @@ class Component {
19221922
if (isChanged) {
19231923
this.render();
19241924
}
1925+
return isChanged;
19251926
}
19261927
onChildComponentModelUpdate(modelName, value, childComponent) {
19271928
if (!childComponent.id) {

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,13 @@ export default class Component {
285285
*
286286
* @param toEl
287287
*/
288-
updateFromNewElementFromParentRender(toEl: HTMLElement): void {
288+
updateFromNewElementFromParentRender(toEl: HTMLElement): boolean {
289289
const props = this.elementDriver.getComponentProps(toEl);
290290

291291
// if no props are on the element, use the existing element completely
292292
// this means the parent is signaling that the child does not need to be re-rendered
293293
if (props === null) {
294-
return;
294+
return false;
295295
}
296296

297297
// push props directly down onto the value store
@@ -305,6 +305,8 @@ export default class Component {
305305
if (isChanged) {
306306
this.render();
307307
}
308+
309+
return isChanged;
308310
}
309311

310312
/**

0 commit comments

Comments
 (0)