Skip to content

Commit

Permalink
[fixed] Version 2.0.14 🙌 - Reacitvity with stores optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
michTheBrandofficial committed Dec 28, 2023
1 parent 9ee376e commit f4066e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions dom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Nixix = {
props: Proptype,
...children: ChildrenType
): Element | Array<Element | string | Signal> | undefined {
nixixStore.jsx = true;
if (!nixixStore.jsx) doBGWork(() => nixixStore.jsx = false), (nixixStore.jsx = true);
let returnedElement: any = null;
if (typeof tagNameFC === "string") {
if (tagNameFC === "fragment") {
Expand All @@ -65,7 +65,6 @@ const Nixix = {
returnedElement = element;
}
} else returnedElement = buildComponent(tagNameFC, props, children);
nixixStore.jsx = false
return returnedElement;
},
handleDirectives: handleDirectives_,
Expand Down Expand Up @@ -228,7 +227,6 @@ function buildComponent(
) {
let returnedElement: any = null;
if (isFunction(tagNameFC)) {
nixixStore.jsx = false
const artificialProps = props || {};
Boolean(children?.length) && (artificialProps.children = children);
returnedElement = (tagNameFC as Function)(artificialProps);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nixix",
"version": "2.0.13",
"version": "2.0.14",
"description": "NixixJS is a lightweight JavaScript Library used for building reactive User Interfaces.",
"main": "./dom/index.ts",
"module": "./dom/index.ts",
Expand Down

0 comments on commit f4066e9

Please sign in to comment.