@react-navigation/stack 7.6.3 → 7.6.5

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,29 +0,0 @@
1
- "use strict";
2
-
3
- export function memoize(callback) {
4
- let previous;
5
- let result;
6
- return (...dependencies) => {
7
- let hasChanged = false;
8
- if (previous) {
9
- if (previous.length !== dependencies.length) {
10
- hasChanged = true;
11
- } else {
12
- for (let i = 0; i < previous.length; i++) {
13
- if (previous[i] !== dependencies[i]) {
14
- hasChanged = true;
15
- break;
16
- }
17
- }
18
- }
19
- } else {
20
- hasChanged = true;
21
- }
22
- previous = dependencies;
23
- if (hasChanged || result === undefined) {
24
- result = callback(...dependencies);
25
- }
26
- return result;
27
- };
28
- }
29
- //# sourceMappingURL=memoize.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["memoize","callback","previous","result","dependencies","hasChanged","length","i","undefined"],"sourceRoot":"../../../src","sources":["utils/memoize.tsx"],"mappings":";;AAAA,OAAO,SAASA,OAAOA,CACrBC,QAAmC,EACnC;EACA,IAAIC,QAA0B;EAC9B,IAAIC,MAA0B;EAE9B,OAAO,CAAC,GAAGC,YAAkB,KAAa;IACxC,IAAIC,UAAU,GAAG,KAAK;IAEtB,IAAIH,QAAQ,EAAE;MACZ,IAAIA,QAAQ,CAACI,MAAM,KAAKF,YAAY,CAACE,MAAM,EAAE;QAC3CD,UAAU,GAAG,IAAI;MACnB,CAAC,MAAM;QACL,KAAK,IAAIE,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGL,QAAQ,CAACI,MAAM,EAAEC,CAAC,EAAE,EAAE;UACxC,IAAIL,QAAQ,CAACK,CAAC,CAAC,KAAKH,YAAY,CAACG,CAAC,CAAC,EAAE;YACnCF,UAAU,GAAG,IAAI;YACjB;UACF;QACF;MACF;IACF,CAAC,MAAM;MACLA,UAAU,GAAG,IAAI;IACnB;IAEAH,QAAQ,GAAGE,YAAY;IAEvB,IAAIC,UAAU,IAAIF,MAAM,KAAKK,SAAS,EAAE;MACtCL,MAAM,GAAGF,QAAQ,CAAC,GAAGG,YAAY,CAAC;IACpC;IAEA,OAAOD,MAAM;EACf,CAAC;AACH","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export declare function memoize<Result, Deps extends readonly any[]>(callback: (...deps: Deps) => Result): (...dependencies: Deps) => Result;
2
- //# sourceMappingURL=memoize.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["../../../../src/utils/memoize.tsx"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,CAAC,MAAM,EAAE,IAAI,SAAS,SAAS,GAAG,EAAE,EACzD,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,MAAM,IAK3B,GAAG,cAAc,IAAI,KAAG,MAAM,CA0BvC"}
@@ -1,33 +0,0 @@
1
- export function memoize<Result, Deps extends readonly any[]>(
2
- callback: (...deps: Deps) => Result
3
- ) {
4
- let previous: Deps | undefined;
5
- let result: Result | undefined;
6
-
7
- return (...dependencies: Deps): Result => {
8
- let hasChanged = false;
9
-
10
- if (previous) {
11
- if (previous.length !== dependencies.length) {
12
- hasChanged = true;
13
- } else {
14
- for (let i = 0; i < previous.length; i++) {
15
- if (previous[i] !== dependencies[i]) {
16
- hasChanged = true;
17
- break;
18
- }
19
- }
20
- }
21
- } else {
22
- hasChanged = true;
23
- }
24
-
25
- previous = dependencies;
26
-
27
- if (hasChanged || result === undefined) {
28
- result = callback(...dependencies);
29
- }
30
-
31
- return result;
32
- };
33
- }