@opentui/solid 0.1.92 → 0.1.93

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/index.js +2 -9
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1025,16 +1025,9 @@ function Slot(props) {
1025
1025
  const entryIds = createMemo3(() => entries().map((entry) => entry.id));
1026
1026
  const entriesById = createMemo3(() => new Map(entries().map((entry) => [entry.id, entry])));
1027
1027
  const slotName = () => String(local.name);
1028
- let fallbackView;
1029
1028
  const renderFallback = () => {
1030
- if (fallbackView)
1031
- return fallbackView();
1032
- const resolvedFallbackChildren = children(() => local.children);
1033
- fallbackView = () => {
1034
- const value = resolvedFallbackChildren();
1035
- return value ?? null;
1036
- };
1037
- return fallbackView();
1029
+ const value = children(() => local.children)();
1030
+ return value ?? null;
1038
1031
  };
1039
1032
  const resolveFallback = (fallbackValue) => fallbackValue?.() ?? null;
1040
1033
  const renderPluginFailurePlaceholder = (failure, fallbackValue) => {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",
7
- "version": "0.1.92",
7
+ "version": "0.1.93",
8
8
  "description": "SolidJS renderer for OpenTUI",
9
9
  "license": "MIT",
10
10
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@babel/core": "7.28.0",
37
37
  "@babel/preset-typescript": "7.27.1",
38
- "@opentui/core": "0.1.92",
38
+ "@opentui/core": "0.1.93",
39
39
  "babel-plugin-module-resolver": "5.0.2",
40
40
  "babel-preset-solid": "1.9.10",
41
41
  "entities": "7.0.1",