chayns-api 2.1.3-2 → 2.1.3-3

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.
@@ -32,7 +32,10 @@ const withCompatMode = Component => {
32
32
  ref: innerRef
33
33
  })));
34
34
  if (typeof ((_ReactDOMClient = ReactDOMClient) === null || _ReactDOMClient === void 0 ? void 0 : _ReactDOMClient.createRoot) === 'function') {
35
- this.root = ReactDOMClient.createRoot(this.ref.current);
35
+ // TODO: use non-random value
36
+ this.root = ReactDOMClient.createRoot(this.ref.current, {
37
+ identifierPrefix: crypto.randomUUID()
38
+ });
36
39
  this.root.render(component);
37
40
  } else {
38
41
  _reactDom.default.render(component, this.ref.current);
@@ -25,7 +25,10 @@ export const withCompatMode = Component => {
25
25
  ref: innerRef
26
26
  })));
27
27
  if (typeof ((_ReactDOMClient = ReactDOMClient) === null || _ReactDOMClient === void 0 ? void 0 : _ReactDOMClient.createRoot) === 'function') {
28
- this.root = ReactDOMClient.createRoot(this.ref.current);
28
+ // TODO: use non-random value
29
+ this.root = ReactDOMClient.createRoot(this.ref.current, {
30
+ identifierPrefix: crypto.randomUUID()
31
+ });
29
32
  this.root.render(component);
30
33
  } else {
31
34
  ReactDOM.render(component, this.ref.current);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chayns-api",
3
- "version": "2.1.3-2",
3
+ "version": "2.1.3-3",
4
4
  "description": "new chayns api",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",