@arcgis/lumina 4.32.0-next.40 → 4.32.0-next.42

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.
@@ -62,10 +62,16 @@ function reInitialize(instance, newModule) {
62
62
  ([propertyName, descriptor]) => typeof propertyName === "string" && (instance._hmrSetProps.has(propertyName) || typeof descriptor.attribute === "string" && instance._hmrSetAttributes.has(descriptor.attribute))
63
63
  ).map(([key]) => [key, instance[key]]);
64
64
  instance._store = Object.fromEntries(preservedProperties);
65
- const isConnected = instance.isConnected;
66
- if (isConnected) {
65
+ if (instance.isConnected) {
67
66
  instance._litElement.disconnectedCallback();
68
67
  }
68
+ const renderRoot = instance._litElement?.renderRoot;
69
+ if (renderRoot) {
70
+ renderRoot._$litPart$ = void 0;
71
+ while (renderRoot.firstChild) {
72
+ renderRoot.removeChild(renderRoot.firstChild);
73
+ }
74
+ }
69
75
  instance._initializeComponent(newModule);
70
76
  }
71
77
  function handleComponentMetaUpdate(meta) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "4.32.0-next.40",
3
+ "version": "4.32.0-next.42",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -20,8 +20,8 @@
20
20
  ],
21
21
  "license": "SEE LICENSE IN LICENSE.md",
22
22
  "dependencies": {
23
- "@arcgis/components-controllers": "4.32.0-next.40",
24
- "@arcgis/components-utils": "4.32.0-next.40",
23
+ "@arcgis/components-controllers": "4.32.0-next.42",
24
+ "@arcgis/components-utils": "4.32.0-next.42",
25
25
  "@lit-labs/ssr": "^3.2.2",
26
26
  "@lit-labs/ssr-client": "^1.1.7",
27
27
  "@lit/context": "^1.1.3",