Repository navigation
feat: rename experimentalTransitionTypes to transitionTypes - #263
Merged
Merged
Conversation
addTransitionType is stable as of React 19.3, so drop the experimental prefix from the Router prop and update references to React Canary. experimentalTransitionTypes remains as a deprecated alias; when both are given, transitionTypes takes precedence. Closes #258 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A82ucUxAtPLYyLo6hbguYA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A82ucUxAtPLYyLo6hbguYA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #258
addTransitionTypeis stable as of React 19.3, so this drops theexperimentalprefix from the<Router>prop and updates the docs and code comments that still said React Canary was required.Changes
transitionTypesprop on<Router>.experimentalTransitionTypesstill works as a@deprecatedalias, to be removed in the next major version. If both are passed,transitionTypeswins.Router/index.tsx,types.tsandcore/addTransitionType.tsnow say "React 19.3 or later" instead of "React Canary".<Router>props table: adds atransitionTypesrow. The prop wasn't listed there before.transitionTypes. Two new tests cover the deprecated alias and which prop wins when both are passed.Unchanged on purpose
addTransitionTypethe prop is still called and the types are dropped.unstable_addTransitionType: the lookup still falls back to this older name, so Canary builds from before 19.3 keep working.Verification
pnpm typecheck,pnpm lint,pnpm format:checkand the router test suite (352 tests) all pass locally.🤖 Generated with Claude Code
https://claude.ai/code/session_01A82ucUxAtPLYyLo6hbguYA
Generated by Claude Code