set nav-return more often

This commit is contained in:
Jackson Harper
2024-06-25 17:54:30 +08:00
parent 2c2e449597
commit dd44322db7

View File

@ -162,6 +162,10 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [setQueryInputs, router.isReady, router.query])
useEffect(() => {
window.localStorage.setItem('nav-return', router.asPath)
}, [router.asPath])
const hasMore = useMemo(() => {
if (!itemsPages) {
return false