mirror of https://github.com/usememos/memos
fix(web): memoize useNavigateTo to prevent infinite view transition loop
Wrapping the returned function in useCallback prevents a new reference on every render, which was causing an infinite startViewTransition loop on the initial signup page (fresh install with no admin). Fixes #5626pull/5654/head
parent
6eaab52e48
commit
2ab476ef2e
Loading…
Reference in New Issue