Repository navigation
fix(v8): resolve react 19 type issues for v8 packages - #35288
Merged
Martin Hochel (Hotell) merged 8 commits intoOct 8, 2025
Merged
Martin Hochel (Hotell) merged 8 commits into
Martin Hochel (Hotell) merged 8 commits into
Conversation
📊 Bundle size reportUnchanged fixtures
|
|
Pull request demo site: URL |
| - name: React Versions Integration Tests (17,19) - Test | ||
| run: | | ||
| FLUENT_JEST_WORKER=2 yarn nx affected -t test-rit--17--test,test-rit--17--type-check,test-rit--19--test,test-rit--19--type-check --exclude='react-19-tests-v9,react-charting,react,react-hooks,react-examples,react-experiments' | ||
| FLUENT_JEST_WORKER=2 yarn nx affected -t test-rit--17--test,test-rit--19--test --exclude='react-19-tests-v9,react-charting,react,react-hooks,react-examples,react-experiments' |
Contributor
Author
There was a problem hiding this comment.
Temporarily split rit-test and rit-typecheck steps as we can run rit-typecheck for v8 packages as well, but tests are not ready yet. Will revert this once tests are ready
Contributor
There was a problem hiding this comment.
good call, ty
Atishay Jain (atisjai) (AtishayMsft)
approved these changes
Oct 8, 2025
Martin Hochel (Hotell)
approved these changes
Oct 8, 2025
Martin Hochel (Hotell)
left a comment
Contributor
There was a problem hiding this comment.
LGTM, we need to add proper linting enforcement like for v9
| - name: React Versions Integration Tests (17,19) - Test | ||
| run: | | ||
| FLUENT_JEST_WORKER=2 yarn nx affected -t test-rit--17--test,test-rit--17--type-check,test-rit--19--test,test-rit--19--type-check --exclude='react-19-tests-v9,react-charting,react,react-hooks,react-examples,react-experiments' | ||
| FLUENT_JEST_WORKER=2 yarn nx affected -t test-rit--17--test,test-rit--19--test --exclude='react-19-tests-v9,react-charting,react,react-hooks,react-examples,react-experiments' |
Contributor
There was a problem hiding this comment.
good call, ty
Alexander Katrukhin (pixel-perfectionist)
pushed a commit
to pixel-perfectionist/fluentui
that referenced
this pull request
Oct 8, 2025
1 task done
Tudor Popa (tudorpopams)
pushed a commit
to tudorpopams/fluentui
that referenced
this pull request
Apr 14, 2026
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.

Previous Behavior
As described in the #35203 there were 389 TS errors reported by react-integration-tester for v8 packages:
New Behavior
This PR fixes all reported TS errors and enables react-integration-test (type-check only for now, tests are in progress too but will be in separate PRs):
solution: provide same custom JSX namespace types like we have in react-utilities to v8
'RefObject<IDetailsList | null>'is not assignable to type'IRefObject<IDetailsList> | undefined' ->componentRef?: IRefObject<IComboBox>;solution: updating ref types like for v9 by adding
nulltoRefObject<Type> => RefObject<Type | null>React.useRef<number | null>()solution: updating
useReflikeReact.useRef<number | null>() => React.useRef<number | null>(null)typeof TilesListis not assignable to typenew (props: any) => Component<any, any, any>. Types of construct signatures are incompatible. Typenew <TItem>(props: ITilesListProps<TItem>, context: any) => TilesList<TItem>is not assignable to typenew (props: any) => Component<any, any, any>. Target signature provides too few arguments. Expected 2 or more, but got 1.solution: Make the 2nd argument of the class component constructor optional
context: any => context?: any, egconstructor(props: Props, context: any) => constructor(props: Props, context?: any)Related Issue(s)