@meursyphus/flitter 2.0.0-alpha.7 → 2.0.0-alpha.8
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/index.cjs +8 -0
- package/index.d.cts +1 -0
- package/index.d.ts +1 -0
- package/index.global.js +8 -0
- package/index.js +8 -0
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -13875,6 +13875,10 @@ var AppRunner = class {
|
|
|
13875
13875
|
this.widget = widget;
|
|
13876
13876
|
if (this.renderContext.viewSize == null || this.renderContext.viewSize.width === 0 || this.renderContext.viewSize.height === 0)
|
|
13877
13877
|
return "";
|
|
13878
|
+
if (this.root) {
|
|
13879
|
+
this.root.unmount();
|
|
13880
|
+
this.root = null;
|
|
13881
|
+
}
|
|
13878
13882
|
this.root = new RenderObjectToWidgetAdapter_default({
|
|
13879
13883
|
app: widget,
|
|
13880
13884
|
buildOwner: this.buildOwner,
|
|
@@ -14053,6 +14057,10 @@ var ProviderElement = class extends Element_default {
|
|
|
14053
14057
|
super.mount(newParent);
|
|
14054
14058
|
this.child = this.inflateWidget(this.widget.child);
|
|
14055
14059
|
}
|
|
14060
|
+
unmount() {
|
|
14061
|
+
super.unmount();
|
|
14062
|
+
this.child.unmount();
|
|
14063
|
+
}
|
|
14056
14064
|
update(newWidget) {
|
|
14057
14065
|
super.update(newWidget);
|
|
14058
14066
|
this.performRebuild();
|
package/index.d.cts
CHANGED
|
@@ -3867,6 +3867,7 @@ declare class ProviderElement extends Element {
|
|
|
3867
3867
|
get value(): unknown;
|
|
3868
3868
|
visitChildren(visitor: (child: Element) => void): void;
|
|
3869
3869
|
mount(newParent?: Element | undefined): void;
|
|
3870
|
+
unmount(): void;
|
|
3870
3871
|
update(newWidget: Widget): void;
|
|
3871
3872
|
protected performRebuild(): void;
|
|
3872
3873
|
constructor(widget: Provider<unknown, unknown>);
|
package/index.d.ts
CHANGED
|
@@ -3867,6 +3867,7 @@ declare class ProviderElement extends Element {
|
|
|
3867
3867
|
get value(): unknown;
|
|
3868
3868
|
visitChildren(visitor: (child: Element) => void): void;
|
|
3869
3869
|
mount(newParent?: Element | undefined): void;
|
|
3870
|
+
unmount(): void;
|
|
3870
3871
|
update(newWidget: Widget): void;
|
|
3871
3872
|
protected performRebuild(): void;
|
|
3872
3873
|
constructor(widget: Provider<unknown, unknown>);
|
package/index.global.js
CHANGED
|
@@ -14254,6 +14254,10 @@
|
|
|
14254
14254
|
this.widget = widget;
|
|
14255
14255
|
if (this.renderContext.viewSize == null || this.renderContext.viewSize.width === 0 || this.renderContext.viewSize.height === 0)
|
|
14256
14256
|
return "";
|
|
14257
|
+
if (this.root) {
|
|
14258
|
+
this.root.unmount();
|
|
14259
|
+
this.root = null;
|
|
14260
|
+
}
|
|
14257
14261
|
this.root = new RenderObjectToWidgetAdapter_default({
|
|
14258
14262
|
app: widget,
|
|
14259
14263
|
buildOwner: this.buildOwner,
|
|
@@ -14432,6 +14436,10 @@
|
|
|
14432
14436
|
super.mount(newParent);
|
|
14433
14437
|
this.child = this.inflateWidget(this.widget.child);
|
|
14434
14438
|
}
|
|
14439
|
+
unmount() {
|
|
14440
|
+
super.unmount();
|
|
14441
|
+
this.child.unmount();
|
|
14442
|
+
}
|
|
14435
14443
|
update(newWidget) {
|
|
14436
14444
|
super.update(newWidget);
|
|
14437
14445
|
this.performRebuild();
|
package/index.js
CHANGED
|
@@ -13875,6 +13875,10 @@ var AppRunner = class {
|
|
|
13875
13875
|
this.widget = widget;
|
|
13876
13876
|
if (this.renderContext.viewSize == null || this.renderContext.viewSize.width === 0 || this.renderContext.viewSize.height === 0)
|
|
13877
13877
|
return "";
|
|
13878
|
+
if (this.root) {
|
|
13879
|
+
this.root.unmount();
|
|
13880
|
+
this.root = null;
|
|
13881
|
+
}
|
|
13878
13882
|
this.root = new RenderObjectToWidgetAdapter_default({
|
|
13879
13883
|
app: widget,
|
|
13880
13884
|
buildOwner: this.buildOwner,
|
|
@@ -14053,6 +14057,10 @@ var ProviderElement = class extends Element_default {
|
|
|
14053
14057
|
super.mount(newParent);
|
|
14054
14058
|
this.child = this.inflateWidget(this.widget.child);
|
|
14055
14059
|
}
|
|
14060
|
+
unmount() {
|
|
14061
|
+
super.unmount();
|
|
14062
|
+
this.child.unmount();
|
|
14063
|
+
}
|
|
14056
14064
|
update(newWidget) {
|
|
14057
14065
|
super.update(newWidget);
|
|
14058
14066
|
this.performRebuild();
|
package/package.json
CHANGED