Skip to content
Discussion options

You must be logged in to vote

Just to add a little more context to the tweet, provided by @hollandThomas

You can use the useOutlet-Hook from React Router (docs). For convenience, you can directly import it from Remix, but the documentation lives at React Router. When you navigate with <Link/>, Remix handles navigation by replacing the children. You can get the current outlet with useOutlet and wrap it in an animation component. (e.g. Framers AnimatePresence

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ryanflorence
Comment options

@QuentinWidlocher
Comment options

Answer selected by derpoho
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants