React Router and framer motion Animate Presence
问题 When I added 'exitBeforeEnter' prop to the Animate Presence component with nested routes, the routes didn't render at all but when I refreshed the page they rendered, removing this prop or go to the component directly will fix it, but I need to use the prop and the redirect component from react-router This is my code: <AnimatePresence exitBeforeEnter> <Switch location={this.props.location} key={this.props.location.pathname} > <Route exact path='/home' component={() => <.../> <Route path='