mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at session-alignment 56 lines 3.3 kB view raw
1diff --git a/node_modules/@react-navigation/native/lib/commonjs/useLinking.js b/node_modules/@react-navigation/native/lib/commonjs/useLinking.js 2index ef4f368..2b0da35 100644 3--- a/node_modules/@react-navigation/native/lib/commonjs/useLinking.js 4+++ b/node_modules/@react-navigation/native/lib/commonjs/useLinking.js 5@@ -273,8 +273,12 @@ function useLinking(ref, _ref) { 6 }); 7 const currentIndex = history.index; 8 try { 9- if (nextIndex !== -1 && nextIndex < currentIndex) { 10- // An existing entry for this path exists and it's less than current index, go back to that 11+ if ( 12+ nextIndex !== -1 && 13+ nextIndex < currentIndex && 14+ // We should only go back if the entry exists and it's less than current index 15+ history.get(nextIndex - currentIndex) 16+ ) { // An existing entry for this path exists and it's less than current index, go back to that 17 await history.go(nextIndex - currentIndex); 18 } else { 19 // We couldn't find an existing entry to go back to, so we'll go back by the delta 20diff --git a/node_modules/@react-navigation/native/lib/module/useLinking.js b/node_modules/@react-navigation/native/lib/module/useLinking.js 21index 62a3b43..11a5a28 100644 22--- a/node_modules/@react-navigation/native/lib/module/useLinking.js 23+++ b/node_modules/@react-navigation/native/lib/module/useLinking.js 24@@ -264,8 +264,12 @@ export default function useLinking(ref, _ref) { 25 }); 26 const currentIndex = history.index; 27 try { 28- if (nextIndex !== -1 && nextIndex < currentIndex) { 29- // An existing entry for this path exists and it's less than current index, go back to that 30+ if ( 31+ nextIndex !== -1 && 32+ nextIndex < currentIndex && 33+ // We should only go back if the entry exists and it's less than current index 34+ history.get(nextIndex - currentIndex) 35+ ) { // An existing entry for this path exists and it's less than current index, go back to that 36 await history.go(nextIndex - currentIndex); 37 } else { 38 // We couldn't find an existing entry to go back to, so we'll go back by the delta 39diff --git a/node_modules/@react-navigation/native/src/useLinking.tsx b/node_modules/@react-navigation/native/src/useLinking.tsx 40index 3db40b7..9ba4ecd 100644 41--- a/node_modules/@react-navigation/native/src/useLinking.tsx 42+++ b/node_modules/@react-navigation/native/src/useLinking.tsx 43@@ -381,7 +381,12 @@ export default function useLinking( 44 const currentIndex = history.index; 45 46 try { 47- if (nextIndex !== -1 && nextIndex < currentIndex) { 48+ if ( 49+ nextIndex !== -1 && 50+ nextIndex < currentIndex && 51+ // We should only go back if the entry exists and it's less than current index 52+ history.get(nextIndex - currentIndex) 53+ ) { 54 // An existing entry for this path exists and it's less than current index, go back to that 55 await history.go(nextIndex - currentIndex); 56 } else {