rask-ui 0.28.1 → 0.28.2
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/dist/transformer.d.ts.map +1 -1
- package/dist/transformer.js +5 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../src/transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAEL,KAAK,EACN,MAAM,SAAS,CAAC;AAIjB,wBAAgB,oBAAoB,CAClC,CAAC,EAAE,GAAG,EACN,SAAS,EAAE,GAAG,EACd,KAAK,EAAE,GAAG,YAAK,EACf,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,GACP,KAAK,
|
|
1
|
+
{"version":3,"file":"transformer.d.ts","sourceRoot":"","sources":["../src/transformer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,cAAc,EACd,eAAe,EACf,cAAc,EACd,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAEL,KAAK,EACN,MAAM,SAAS,CAAC;AAIjB,wBAAgB,oBAAoB,CAClC,CAAC,EAAE,GAAG,EACN,SAAS,EAAE,GAAG,EACd,KAAK,EAAE,GAAG,YAAK,EACf,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,GACP,KAAK,CAYP"}
|
package/dist/transformer.js
CHANGED
|
@@ -3,5 +3,9 @@ import { createComponentVNode as infernoCreateComponentVnode, } from "inferno";
|
|
|
3
3
|
import { RaskComponent } from "./component";
|
|
4
4
|
export function createComponentVNode(_, component, props = {}, key, ref) {
|
|
5
5
|
props.__component = component;
|
|
6
|
-
return infernoCreateComponentVnode(4 /* VNodeFlags.ComponentClass */, RaskComponent, props,
|
|
6
|
+
return infernoCreateComponentVnode(4 /* VNodeFlags.ComponentClass */, RaskComponent, props,
|
|
7
|
+
// Since RaskComponent is generic for all components we need to differentiate changing out the component, which
|
|
8
|
+
// we do simply by using the name as a key. There is not chance two different components has the same name,
|
|
9
|
+
// but is not the same component in the same component tree position
|
|
10
|
+
key || component.name, ref);
|
|
7
11
|
}
|