feat: increase the number of relays used for finding user notes

This commit is contained in:
codytseng
2025-01-25 18:24:29 +08:00
parent fb5fe0e631
commit 92b78d4573
2 changed files with 6 additions and 3 deletions

View File

@@ -74,12 +74,15 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
setSecondaryStack((prevStack) => {
if (isCurrentPage(prevStack, url)) return prevStack
const { newStack } = pushNewPageToStack(
const { newStack, newItem } = pushNewPageToStack(
prevStack,
url,
maxStackSize,
window.history.state?.index
)
if (newItem) {
window.history.replaceState({ index: newItem.index, url }, '', url)
}
return newStack
})
}