feat: increase the number of relays used for finding user notes
This commit is contained in:
parent
fb5fe0e631
commit
92b78d4573
2 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue