@tamagui/use-did-finish-ssr 1.113.0 → 1.113.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/esm/index.native.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
var emptyFn = function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var emptyFn = function() {
|
|
3
|
+
}, emptyFnFn = function() {
|
|
4
|
+
return emptyFn;
|
|
5
|
+
};
|
|
6
6
|
function useDidFinishSSR(value, options) {
|
|
7
7
|
return value ?? !0;
|
|
8
8
|
var cur, setCur;
|
|
@@ -16,5 +16,9 @@ function useClientValue(value) {
|
|
|
16
16
|
var done = useDidFinishSSR();
|
|
17
17
|
return done ? typeof value == "function" ? value() : value : void 0;
|
|
18
18
|
}
|
|
19
|
-
export {
|
|
20
|
-
|
|
19
|
+
export {
|
|
20
|
+
useClientValue,
|
|
21
|
+
useDidFinishSSR,
|
|
22
|
+
useDidFinishSSRSync
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/core/use-did-finish-ssr/src/index.ts"],
|
|
4
|
+
"mappings": "AAAA,YAAYA,WAAW;AAEvB,IAAMC,UAAU,WAAA;AAAO,GACjBC,YAAY,WAAA;SAAMD;;AAEjB,SAASE,gBACdC,OACAC,SAEC;AAIC,SAAOD,SAAS;AAWlB,MAAOE,KAAKC;AAKd;AAKO,SAASC,oBAAiCJ,OAAS;AACxD,SAAOD,gBAAgBC,OAAO;IAC5BK,MAAM;EACR,CAAA;AACF;AAIO,SAASC,eAAsBN,OAAa;AACjD,MAAMO,OAAOR,gBAAAA;AACb,SAAQQ,OAAmB,OAAOP,SAAU,aAAaA,MAAAA,IAAUA,QAApDQ;AACjB;",
|
|
5
|
+
"names": ["React", "emptyFn", "emptyFnFn", "useDidFinishSSR", "value", "options", "cur", "setCur", "useDidFinishSSRSync", "sync", "useClientValue", "done", "undefined"]
|
|
6
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/use-did-finish-ssr",
|
|
3
|
-
"version": "1.113.
|
|
3
|
+
"version": "1.113.2",
|
|
4
4
|
"types": "./types/index.d.ts",
|
|
5
5
|
"main": "dist/cjs",
|
|
6
6
|
"module": "dist/esm",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@tamagui/build": "1.113.
|
|
31
|
+
"@tamagui/build": "1.113.2",
|
|
32
32
|
"react": "^18.2.0 || ^19.0.0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|