@dcl/react-ecs 7.12.3-19269914897.commit-1299cf2 → 7.12.3-19272644543.commit-c9229e1

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.
Files changed (2) hide show
  1. package/dist/system.js +3 -3
  2. package/package.json +3 -3
package/dist/system.js CHANGED
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { createReconciler } from './reconciler';
2
3
  /**
3
4
  * @public
@@ -8,10 +9,9 @@ export function createReactBasedUiSystem(engine, pointerSystem) {
8
9
  const textureRenderersAndUis = [];
9
10
  function ReactBasedUiSystem() {
10
11
  if (uiComponent)
11
- renderer.update(uiComponent());
12
- // if (uiComponent) renderer.update(React.createElement(uiComponent as any)) // TODO: merge conflict... main branch uses React.createElement
12
+ renderer.update(React.createElement(uiComponent));
13
13
  for (const [textureRenderer, ui] of textureRenderersAndUis) {
14
- textureRenderer.update(ui());
14
+ textureRenderer.update(React.createElement(ui()));
15
15
  }
16
16
  }
17
17
  engine.addSystem(ReactBasedUiSystem, 100e3, '@dcl/react-ecs');
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dcl/react-ecs",
3
3
  "description": "Decentraland ECS",
4
- "version": "7.12.3-19269914897.commit-1299cf2",
4
+ "version": "7.12.3-19272644543.commit-c9229e1",
5
5
  "author": "DCL",
6
6
  "bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
7
7
  "dependencies": {
8
- "@dcl/ecs": "7.12.3-19269914897.commit-1299cf2",
8
+ "@dcl/ecs": "7.12.3-19272644543.commit-c9229e1",
9
9
  "react": "^18.2.0",
10
10
  "react-reconciler": "^0.29.0"
11
11
  },
@@ -40,5 +40,5 @@
40
40
  "tsconfig": "./tsconfig.json"
41
41
  },
42
42
  "types": "./dist/index.d.ts",
43
- "commit": "1299cf2b6c9f4d032f8bd92be29e6b49e7122f42"
43
+ "commit": "c9229e1cc22b0e2e668e40f0bf51de1f442308c7"
44
44
  }