Clarify useViewTransitionState docs for bidirectional matching#14845
Clarify useViewTransitionState docs for bidirectional matching#14845createhb21 wants to merge 2 commits intoremix-run:mainfrom
Conversation
|
|
Hi @createhb21, Welcome, and thank you for contributing to React Router! Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once. You may review the CLA and sign it by adding your name to contributors.yml. Once the CLA is signed, the If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at hello@remix.run. Thanks! - The Remix team |
|
Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳 |
Summary
useViewTransitionStatedocs to describe bidirectional matching (active when transitioning to or from the given location)lib.tsxuseViewTransitionStatestays active for bothcurrentLocationandnextLocationwhile a transition is in progressTesting
pnpm test packages/react-router/__tests__/dom/data-browser-router-test.tsx -t "keeps useViewTransitionState active for both from/to locations during transitions"pnpm exec prettier --check packages/react-router/lib/dom/lib.tsx packages/react-router/__tests__/dom/data-browser-router-test.tsxCloses #14686.