@tamagui/use-callback-ref 2.7.7 → 3.0.0-beta.643.1

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.
@@ -1,3 +1,4 @@
1
+
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -5,42 +6,33 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __getProtoOf = Object.getPrototypeOf;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: true
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
30
26
  }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
28
  var index_exports = {};
35
- __export(index_exports, {
36
- useCallbackRef: () => useCallbackRef
37
- });
29
+ __export(index_exports, { useCallbackRef: () => useCallbackRef });
38
30
  module.exports = __toCommonJS(index_exports);
39
31
  var React = __toESM(require("react"), 1);
40
32
  function useCallbackRef(callback) {
41
- const callbackRef = React.useRef(callback);
42
- React.useEffect(() => {
43
- callbackRef.current = callback;
44
- });
45
- return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);
46
- }
33
+ const callbackRef = React.useRef(callback);
34
+ React.useEffect(() => {
35
+ callbackRef.current = callback;
36
+ });
37
+ return React.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
38
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: () => from[key],
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
24
+ };
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: true
28
+ }) : target, mod));
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
+ var index_exports = {};
31
+ __export(index_exports, { useCallbackRef: () => useCallbackRef });
32
+ module.exports = __toCommonJS(index_exports);
33
+ var React = __toESM(require("react"), 1);
34
+ function useCallbackRef(callback) {
35
+ var callbackRef = React.useRef(callback);
36
+ React.useEffect(function() {
37
+ callbackRef.current = callback;
38
+ });
39
+ return React.useMemo(function() {
40
+ return function() {
41
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
42
+ args[_key] = arguments[_key];
43
+ }
44
+ var _callbackRef_current;
45
+ return (_callbackRef_current = callbackRef.current) === null || _callbackRef_current === void 0 ? void 0 : _callbackRef_current.call(callbackRef, ...args);
46
+ };
47
+ }, []);
48
+ }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -7,51 +8,43 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
8
  var __getProtoOf = Object.getPrototypeOf;
8
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
10
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
14
15
  };
15
16
  var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
19
+ get: () => from[key],
20
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
21
+ });
22
+ }
23
+ return to;
23
24
  };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
25
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: true
32
28
  }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
29
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
30
  var index_exports = {};
37
- __export(index_exports, {
38
- useCallbackRef: () => useCallbackRef
39
- });
31
+ __export(index_exports, { useCallbackRef: () => useCallbackRef });
40
32
  module.exports = __toCommonJS(index_exports);
41
33
  var React = __toESM(require("react"), 1);
42
34
  function useCallbackRef(callback) {
43
- var callbackRef = React.useRef(callback);
44
- React.useEffect(function () {
45
- callbackRef.current = callback;
46
- });
47
- return React.useMemo(function () {
48
- return function () {
49
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
50
- args[_key] = arguments[_key];
51
- }
52
- var _callbackRef_current;
53
- return (_callbackRef_current = callbackRef.current) === null || _callbackRef_current === void 0 ? void 0 : _callbackRef_current.call(callbackRef, ...args);
54
- };
55
- }, []);
35
+ var callbackRef = React.useRef(callback);
36
+ React.useEffect(function() {
37
+ callbackRef.current = callback;
38
+ });
39
+ return React.useMemo(function() {
40
+ return function() {
41
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
42
+ args[_key] = arguments[_key];
43
+ }
44
+ var _callbackRef_current;
45
+ return (_callbackRef_current = callbackRef.current) === null || _callbackRef_current === void 0 ? void 0 : _callbackRef_current.call(callbackRef, ...args);
46
+ };
47
+ }, []);
56
48
  }
49
+
57
50
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","useCallbackRef","module","exports","React","__toESM","require","callback","callbackRef","useRef","useEffect","current","useMemo"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAEAC,MAAA,CAAAC,OAAuB,GAAAT,YAAA,CAAAK,aAAA;AAMhB,IAAAK,KAAS,GAAAC,OAAA,CAAAC,OACd,QACG;AACH,SAAML,cAAcA,CAAAM,QAAM;EAE1B,IAAAC,WAAM,GAAUJ,KAAM,CAAAK,MAAA,CAAAF,QAAA;EACpBH,KAAA,CAAAM,SAAY,aAAU;IACvBF,WAAA,CAAAG,OAAA,GAAAJ,QAAA;EAGD;EACF,OAAAH,KAAA,CAAAQ,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n useCallbackRef: () => useCallbackRef\n});\nmodule.exports = __toCommonJS(index_exports);\nvar React = __toESM(require(\"react\"), 1);\nfunction useCallbackRef(callback) {\n var callbackRef = React.useRef(callback);\n React.useEffect(function() {\n callbackRef.current = callback;\n });\n return React.useMemo(function() {\n return function() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var _callbackRef_current;\n return (_callbackRef_current = callbackRef.current) === null || _callbackRef_current === void 0 ? void 0 : _callbackRef_current.call(callbackRef, ...args);\n };\n }, []);\n}\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe,EACtB,sBAAsB,eACxB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,QAAQ,QAAQ,QAAQ,OAAO,GAAG,CAAC;AACvC,SAAS,eAAe,UAAU;CAChC,IAAI,cAAc,MAAM,OAAO,QAAQ;CACvC,MAAM,UAAU,WAAW;EACzB,YAAY,UAAU;CACxB,CAAC;CACD,OAAO,MAAM,QAAQ,WAAW;EAC9B,OAAO,WAAW;GAChB,KAAK,IAAI,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,MAAM,QAAQ;IACvF,KAAK,QAAQ,UAAU;GACzB;GACA,IAAI;GACJ,QAAQ,uBAAuB,YAAY,aAAa,QAAQ,yBAAyB,KAAK,IAAI,KAAK,IAAI,qBAAqB,KAAK,aAAa,GAAG,IAAI;EAC3J;CACF,GAAG,CAAC,CAAC;AACP"}
package/dist/esm/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  import * as React from "react";
2
+
2
3
  function useCallbackRef(callback) {
3
- const callbackRef = React.useRef(callback);
4
- React.useEffect(() => {
5
- callbackRef.current = callback;
6
- });
7
- return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);
4
+ const callbackRef = React.useRef(callback);
5
+ React.useEffect(() => {
6
+ callbackRef.current = callback;
7
+ });
8
+ return React.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
8
9
  }
10
+
9
11
  export { useCallbackRef };
10
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallbackRef","callback","callbackRef","useRef","useEffect","current","useMemo","args"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAMhB,SAASC,eACdC,QAAA,EACG;EACH,MAAMC,WAAA,GAAcH,KAAA,CAAMI,MAAA,CAAOF,QAAQ;EAEzCF,KAAA,CAAMK,SAAA,CAAU,MAAM;IACpBF,WAAA,CAAYG,OAAA,GAAUJ,QAAA;EACxB,CAAC;EAGD,OAAOF,KAAA,CAAMO,OAAA,CAAQ,MAAO,IAAIC,IAAA,KAASL,WAAA,CAAYG,OAAA,GAAU,GAAGE,IAAI,GAAS,EAAE;AACnF","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,SAAS,eAAe,UAAU;CAChC,MAAM,cAAc,MAAM,OAAO,QAAQ;CACzC,MAAM,gBAAgB;EACpB,YAAY,UAAU;CACxB,CAAC;CACD,OAAO,MAAM,gBAAgB,GAAG,SAAS,YAAY,UAAU,GAAG,IAAI,IAAI,CAAC,CAAC;AAC9E"}
@@ -1,10 +1,12 @@
1
1
  import * as React from "react";
2
+
2
3
  function useCallbackRef(callback) {
3
- const callbackRef = React.useRef(callback);
4
- React.useEffect(() => {
5
- callbackRef.current = callback;
6
- });
7
- return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);
4
+ const callbackRef = React.useRef(callback);
5
+ React.useEffect(() => {
6
+ callbackRef.current = callback;
7
+ });
8
+ return React.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);
8
9
  }
10
+
9
11
  export { useCallbackRef };
10
12
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallbackRef","callback","callbackRef","useRef","useEffect","current","useMemo","args"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAMhB,SAASC,eACdC,QAAA,EACG;EACH,MAAMC,WAAA,GAAcH,KAAA,CAAMI,MAAA,CAAOF,QAAQ;EAEzCF,KAAA,CAAMK,SAAA,CAAU,MAAM;IACpBF,WAAA,CAAYG,OAAA,GAAUJ,QAAA;EACxB,CAAC;EAGD,OAAOF,KAAA,CAAMO,OAAA,CAAQ,MAAO,IAAIC,IAAA,KAASL,WAAA,CAAYG,OAAA,GAAU,GAAGE,IAAI,GAAS,EAAE;AACnF","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => ((...args) => callbackRef.current?.(...args)), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,SAAS,eAAe,UAAU;CAChC,MAAM,cAAc,MAAM,OAAO,QAAQ;CACzC,MAAM,gBAAgB;EACpB,YAAY,UAAU;CACxB,CAAC;CACD,OAAO,MAAM,gBAAgB,GAAG,SAAS,YAAY,UAAU,GAAG,IAAI,IAAI,CAAC,CAAC;AAC9E"}
@@ -1,18 +1,20 @@
1
1
  import * as React from "react";
2
+
2
3
  function useCallbackRef(callback) {
3
- var callbackRef = React.useRef(callback);
4
- React.useEffect(function () {
5
- callbackRef.current = callback;
6
- });
7
- return React.useMemo(function () {
8
- return function () {
9
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10
- args[_key] = arguments[_key];
11
- }
12
- var _callbackRef_current;
13
- return (_callbackRef_current = callbackRef.current) === null || _callbackRef_current === void 0 ? void 0 : _callbackRef_current.call(callbackRef, ...args);
14
- };
15
- }, []);
4
+ var callbackRef = React.useRef(callback);
5
+ React.useEffect(function() {
6
+ callbackRef.current = callback;
7
+ });
8
+ return React.useMemo(function() {
9
+ return function() {
10
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
11
+ args[_key] = arguments[_key];
12
+ }
13
+ var _callbackRef_current;
14
+ return (_callbackRef_current = callbackRef.current) === null || _callbackRef_current === void 0 ? void 0 : _callbackRef_current.call(callbackRef, ...args);
15
+ };
16
+ }, []);
16
17
  }
18
+
17
19
  export { useCallbackRef };
18
20
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","useCallbackRef","callback","callbackRef","useRef","useEffect","current","useMemo"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAEA,YAAYA,KAAA,MAAW;AAMhB,SAASC,eACdC,QAAA,EACG;EACH,IAAAC,WAAM,GAAAH,KAAc,CAAAI,MAAM,CAAAF,QAAO;EAEjCF,KAAA,CAAMK,SAAA,CAAU,YAAM;IACpBF,WAAA,CAAYG,OAAA,GAAUJ,QAAA;EACxB,CAAC;EAGD,OAAOF,KAAA,CAAMO,OAAA,CAAQ,YAAW;IAClC","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["import * as React from \"react\";\nfunction useCallbackRef(callback) {\n var callbackRef = React.useRef(callback);\n React.useEffect(function() {\n callbackRef.current = callback;\n });\n return React.useMemo(function() {\n return function() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n var _callbackRef_current;\n return (_callbackRef_current = callbackRef.current) === null || _callbackRef_current === void 0 ? void 0 : _callbackRef_current.call(callbackRef, ...args);\n };\n }, []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,SAAS,eAAe,UAAU;CAChC,IAAI,cAAc,MAAM,OAAO,QAAQ;CACvC,MAAM,UAAU,WAAW;EACzB,YAAY,UAAU;CACxB,CAAC;CACD,OAAO,MAAM,QAAQ,WAAW;EAC9B,OAAO,WAAW;GAChB,KAAK,IAAI,OAAO,UAAU,QAAQ,OAAO,IAAI,MAAM,IAAI,GAAG,OAAO,GAAG,OAAO,MAAM,QAAQ;IACvF,KAAK,QAAQ,UAAU;GACzB;GACA,IAAI;GACJ,QAAQ,uBAAuB,YAAY,aAAa,QAAQ,yBAAyB,KAAK,IAAI,KAAK,IAAI,qBAAqB,KAAK,aAAa,GAAG,IAAI;EAC3J;CACF,GAAG,CAAC,CAAC;AACP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/use-callback-ref",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-beta.643.1",
4
4
  "files": [
5
5
  "src",
6
6
  "types",
@@ -33,7 +33,7 @@
33
33
  "clean:build": "tamagui-build clean:build"
34
34
  },
35
35
  "devDependencies": {
36
- "@tamagui/build": "2.7.7",
36
+ "@tamagui/build": "3.0.0-beta.643.1",
37
37
  "react": ">=19"
38
38
  },
39
39
  "peerDependencies": {