fix: Unneccessary animation of sidebar on app load

This commit is contained in:
Tom Moor
2023-06-29 22:51:30 -04:00
parent 8957e86c12
commit 64b2bfe704

View File

@@ -97,7 +97,10 @@ const AuthenticatedLayout: React.FC = ({ children }) => {
team?.getPreference(TeamPreference.Commenting);
const sidebarRight = (
<AnimatePresence>
<AnimatePresence
initial={false}
key={ui.activeDocumentId ? "active" : "inactive"}
>
{(showHistory || showInsights || showComments) && (
<Route path={`/doc/${slug}`}>
<SidebarRight>