@startupjs/docs 0.60.0-canary.13 → 0.60.0-canary.23
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/client/components/Props/index.js +5 -2
- package/index.js +1 -1
- package/package.json +2 -2
|
@@ -63,10 +63,13 @@ function useInitDefaultProps ({ entries, $theProps }) {
|
|
|
63
63
|
$theProps.set({})
|
|
64
64
|
|
|
65
65
|
for (const { name, value, defaultValue } of entries) {
|
|
66
|
+
// When accessing property which starts with '$' it gets removed by Signal's Proxy
|
|
67
|
+
// that's why we need to add an extra '$' at the beginning to access the original name
|
|
68
|
+
const $prop = name.startsWith('$') ? $theProps['$' + name] : $theProps[name]
|
|
66
69
|
if (value !== undefined) {
|
|
67
|
-
$
|
|
70
|
+
$prop.set(value)
|
|
68
71
|
} else if (defaultValue !== undefined) {
|
|
69
|
-
$
|
|
72
|
+
$prop.set(defaultValue)
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
}
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"description": "MDX documentation generator",
|
|
7
|
-
"version": "0.60.0-canary.
|
|
7
|
+
"version": "0.60.0-canary.23",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "index.js",
|
|
10
10
|
"dependencies": {
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"react-native": "*",
|
|
19
19
|
"startupjs": "*"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "802b471785eea53c218f6a4dcb4d4ea47a9d3688"
|
|
22
22
|
}
|