|
|
|
|
@ -207,6 +207,9 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
@@ -207,6 +207,9 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const pushSecondaryPage = (url: string, index?: number) => { |
|
|
|
|
// FIXME: Temporary solution to prevent the back action after closing
|
|
|
|
|
// the modal when navigating.
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
setSecondaryStack((prevStack) => { |
|
|
|
|
if (isCurrentPage(prevStack, url)) { |
|
|
|
|
const currentItem = prevStack[prevStack.length - 1] |
|
|
|
|
@ -222,6 +225,7 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
@@ -222,6 +225,7 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
|
|
|
|
|
} |
|
|
|
|
return newStack |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const popSecondaryPage = () => { |
|
|
|
|
|